Update LazyBookCard progress calculation to handle finished items

This commit is contained in:
mikiher 2024-05-09 07:42:57 +03:00
parent 057bc1a0c0
commit 05c1ced65c

View File

@ -352,7 +352,7 @@ export default {
return progressPercent / this.libraryItemIdsInSeries.length
},
userProgressPercent() {
let progressPercent = this.booksInSeries ? this.seriesProgressPercent : this.useEBookProgress ? this.userProgress?.ebookProgress || 0 : this.userProgress?.progress || 0
let progressPercent = this.itemIsFinished ? 1 : this.booksInSeries ? this.seriesProgressPercent : this.useEBookProgress ? this.userProgress?.ebookProgress || 0 : this.userProgress?.progress || 0
return Math.max(Math.min(1, progressPercent), 0)
},
itemIsFinished() {