From 58ba24762b9de92d40e4bf8500cabc6e3ffe0beb Mon Sep 17 00:00:00 2001 From: PearsonFlyer Date: Mon, 7 Nov 2022 09:39:19 -0500 Subject: [PATCH] Fixed: Correctly calculate books count on Author page Closes #1931 --- .../src/Author/Index/ProgressBar/AuthorIndexProgressBar.js | 4 ++-- frontend/src/Author/Index/Table/AuthorIndexRow.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Author/Index/ProgressBar/AuthorIndexProgressBar.js b/frontend/src/Author/Index/ProgressBar/AuthorIndexProgressBar.js index 8ecc72c7b..d1e57a1df 100644 --- a/frontend/src/Author/Index/ProgressBar/AuthorIndexProgressBar.js +++ b/frontend/src/Author/Index/ProgressBar/AuthorIndexProgressBar.js @@ -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 (