Skip to content

Commit

Permalink
fix(rewind): undefined library.top (#207)
Browse files Browse the repository at this point in the history
resolves #205
  • Loading branch information
RaunoT authored Aug 13, 2024
1 parent 1823fa2 commit 5f3c993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/rewind/_components/RewindStories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ export default function RewindStories({ userRewind, settings }: Props) {
...(userRewind.duration.user && hasShowLibraries
? [createStory(StoryShows, userRewind.shows.count ? 10000 : 4000)]
: []),
...(userRewind.shows.count && hasShowLibraries
...(userRewind.shows.top.length && hasShowLibraries
? [createStory(StoryShowsTop, 8000)]
: []),
...(userRewind.duration.user && hasMovieLibraries
? [createStory(StoryMovies, userRewind.movies.count ? 10000 : 4000)]
: []),
...(userRewind.movies.count && hasMovieLibraries
...(userRewind.movies.top.length && hasMovieLibraries
? [createStory(StoryMoviesTop, 8000)]
: []),
...(userRewind.duration.user && hasAudioLibraries
? [createStory(StoryAudio, userRewind.audio.count ? 10000 : 4000)]
: []),
...(userRewind.audio.count && hasAudioLibraries
...(userRewind.audio.top.length && hasAudioLibraries
? [createStory(StoryAudioTop, 8000)]
: []),
createStory(StoryGoodbye, 11000),
Expand Down

0 comments on commit 5f3c993

Please sign in to comment.