Fixed: Correctly calculate books count on Author page

Closes #1931
This commit is contained in:
PearsonFlyer
2022-11-07 09:39:19 -05:00
committed by Bogdan
parent fbd7b4fe33
commit 58ba24762b
2 changed files with 3 additions and 3 deletions
@@ -17,8 +17,8 @@ function AuthorIndexProgressBar(props) {
detailedProgressBar
} = props;
const progress = bookCount ? bookFileCount / bookCount * 100 : 100;
const text = `${bookFileCount} / ${bookCount}`;
const progress = bookCount ? bookCount / totalBookCount * 100 : 100;
const text = `${bookCount} / ${totalBookCount}`;
return (
<ProgressBar