Update EpisodeSelector.js

This commit is contained in:
James Hawkins 2021-07-19 14:59:22 +01:00 committed by GitHub
parent 9f9564fc25
commit 764cd3d477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export function EpisodeSelector({ setSeason, setEpisode, seasons, season, episod
let currentlyAt = 0; let currentlyAt = 0;
let totalDuration = 0; let totalDuration = 0;
const progress = progressData?.lookmovie?.show?.[slug][`${season}-${v}`] const progress = progressData?.lookmovie?.show?.slug?.[`${season}-${v}`]
if(progress) { if(progress) {
currentlyAt = progress.currentlyAt currentlyAt = progress.currentlyAt
totalDuration = progress.totalDuration totalDuration = progress.totalDuration