From 764cd3d477e5939ad51c51240e303993e9a7626b Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 19 Jul 2021 14:59:22 +0100 Subject: [PATCH] Update EpisodeSelector.js --- src/components/EpisodeSelector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EpisodeSelector.js b/src/components/EpisodeSelector.js index 74a95dda..aac45e27 100644 --- a/src/components/EpisodeSelector.js +++ b/src/components/EpisodeSelector.js @@ -12,7 +12,7 @@ export function EpisodeSelector({ setSeason, setEpisode, seasons, season, episod let currentlyAt = 0; let totalDuration = 0; - const progress = progressData?.lookmovie?.show?.[slug][`${season}-${v}`] + const progress = progressData?.lookmovie?.show?.slug?.[`${season}-${v}`] if(progress) { currentlyAt = progress.currentlyAt totalDuration = progress.totalDuration