Skip to content

Commit

Permalink
fix(rewind): undefined top (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaunoT authored Sep 27, 2024
1 parent 51105cf commit e5a4e2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/rewind/_components/RewindStories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,21 @@ export default function RewindStories({ userRewind, settings }: Props) {
...(isOverseerrActive
? [createStory(StoryRequests, userRewind.requests?.total ? 9000 : 4000)]
: []),
...(userRewind.duration.user && hasShowLibraries
...(userRewind.duration.user && hasShowLibraries && userRewind.shows.top[0]
? [createStory(StoryShows, userRewind.shows.count ? 10000 : 4000)]
: []),
...(userRewind.shows.top.length > 1 && hasShowLibraries
? [createStory(StoryShowsTop, 8000)]
: []),
...(userRewind.duration.user && hasMovieLibraries
...(userRewind.duration.user &&
hasMovieLibraries &&
userRewind.movies.top[0]
? [createStory(StoryMovies, userRewind.movies.count ? 10000 : 4000)]
: []),
...(userRewind.movies.top.length > 1 && hasMovieLibraries
? [createStory(StoryMoviesTop, 8000)]
: []),
...(userRewind.duration.user && hasAudioLibraries
...(userRewind.duration.user && hasAudioLibraries && userRewind.audio.top[0]
? [createStory(StoryAudio, userRewind.audio.count ? 10000 : 4000)]
: []),
...(userRewind.audio.top.length > 1 && hasAudioLibraries
Expand Down

0 comments on commit e5a4e2e

Please sign in to comment.