Skip to content

Commit 9639077

Browse files
authored
Fix non-shows watched glow in Calendar (#1770)
* Fix non-shows watched glow in Calendar * chore: re-order * ci: Run CI
1 parent 961b402 commit 9639077

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

apps/frontend/app/components/media/display-items.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,18 @@ export const MetadataDisplayItem = (props: {
9494
);
9595
return (episodeProgress?.timesSeen ?? 0) > 0;
9696
}
97+
if (
98+
metadataDetails &&
99+
metadataDetails.lot !== MediaLot.Show &&
100+
metadataDetails.lot !== MediaLot.Podcast &&
101+
metadataDetails.lot !== MediaLot.Anime &&
102+
metadataDetails.lot !== MediaLot.Manga
103+
)
104+
return completedHistory.length > 0;
97105
return false;
98106
}, [
107+
metadataDetails,
108+
completedHistory,
99109
userMetadataDetails,
100110
props.calendarEventShowInfo,
101111
props.calendarEventPodcastInfo,

0 commit comments

Comments
 (0)