Don't show progress if the data is from an older schema

This commit is contained in:
root
2021-11-16 20:04:01 +05:30
parent a174aa2ead
commit 2e22d8a910
+1 -1
View File
@@ -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
}
}
},