From 8c97df1be68e372343dd18dab2f054e6d118dac0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 4 Feb 2023 23:23:24 -0600 Subject: [PATCH] Fixed: Book status always green on Book Index page --- frontend/src/Book/Index/ProgressBar/BookIndexProgressBar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Book/Index/ProgressBar/BookIndexProgressBar.js b/frontend/src/Book/Index/ProgressBar/BookIndexProgressBar.js index 7f6ba8829..dd5472e67 100644 --- a/frontend/src/Book/Index/ProgressBar/BookIndexProgressBar.js +++ b/frontend/src/Book/Index/ProgressBar/BookIndexProgressBar.js @@ -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 (