diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index bae6639..b4286b2 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -59,7 +59,7 @@ export default { const lastVideo = await findLastWatch(videoId) if (lastVideo != null) { this.alreadyWatched = true - this.progress = Math.min((lastVideo.progress / lastVideo.video.duration) * 100, 100) + this.progress = lastVideo.progress != null ? Math.min((lastVideo.progress / lastVideo.video.duration) * 100, 100) : 100 } } },