Fix remove media progress use libraryItemId

This commit is contained in:
advplyr 2022-04-09 20:30:18 -05:00
parent 174dac8fd4
commit 8df05896b5

View File

@ -270,7 +270,7 @@ class User {
}
removeMediaProgress(libraryItemId) {
if (!this.mediaProgress.some(lip => lip.id == libraryItemId)) return false
if (!this.mediaProgress.some(lip => lip.libraryItemId == libraryItemId)) return false
this.mediaProgress = this.mediaProgress.filter(lip => lip.libraryItemId != libraryItemId)
return true
}