From be3e111e638632b03af23afe8680d6ab06dfcd94 Mon Sep 17 00:00:00 2001 From: chrisk325 Date: Sun, 4 Jan 2026 05:44:56 +0530 Subject: [PATCH] small fix --- src/components/home/ContinueWatchingSection.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/home/ContinueWatchingSection.tsx b/src/components/home/ContinueWatchingSection.tsx index ee866f7..ac006e9 100644 --- a/src/components/home/ContinueWatchingSection.tsx +++ b/src/components/home/ContinueWatchingSection.tsx @@ -376,7 +376,10 @@ const ContinueWatchingSection = React.forwardRef((props, re const [type, id, ...episodeIdParts] = keyParts; const episodeId = episodeIdParts.length > 0 ? episodeIdParts.join(':') : undefined; const progress = allProgress[key]; - const progressPercent = (progress.currentTime / progress.duration) * 100; + const progressPercent = + progress.duration > 0 + ? (progress.currentTime / progress.duration) * 100 + : 0; // Skip fully watched movies if (type === 'movie' && progressPercent >= 85) continue; // Skip movies with no actual progress (ensure > 0%)