mirror of
https://github.com/Readarr/Readarr
synced 2026-01-17 13:03:38 +01:00
Fixed: Book status always green on Book Index page
This commit is contained in:
parent
d556b77f9d
commit
8c97df1be6
1 changed files with 2 additions and 2 deletions
|
|
@ -16,14 +16,14 @@ function BookIndexProgressBar(props) {
|
|||
detailedProgressBar
|
||||
} = props;
|
||||
|
||||
const progress = bookCount ? bookFileCount / bookCount * 100 : 100;
|
||||
const progress = bookCount ? bookFileCount / totalBookCount * 100 : 0;
|
||||
const text = `${bookFileCount} / ${bookCount}`;
|
||||
|
||||
return (
|
||||
<ProgressBar
|
||||
className={styles.progressBar}
|
||||
containerClassName={styles.progress}
|
||||
progress={progress}
|
||||
progress={100}
|
||||
kind={getProgressBarKind('ended', monitored, progress)}
|
||||
size={detailedProgressBar ? sizes.MEDIUM : sizes.SMALL}
|
||||
showText={detailedProgressBar}
|
||||
|
|
|
|||
Loading…
Reference in a new issue