From 5a813b8316af3919211a8b0cae1778783d047486 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Sat, 2 Dec 2023 05:49:31 -0700 Subject: [PATCH] Fix goal text when reports are all done --- src/views/ReportsCenter/ReportsCenter.tsx | 28 +++++++++++++---------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/views/ReportsCenter/ReportsCenter.tsx b/src/views/ReportsCenter/ReportsCenter.tsx index b3410a2997..d92a3bee88 100644 --- a/src/views/ReportsCenter/ReportsCenter.tsx +++ b/src/views/ReportsCenter/ReportsCenter.tsx @@ -166,18 +166,22 @@ export function ReportsCenter(): JSX.Element { ? "All done, thank you!" : report_manager.getHandledTodayCount() || ""} -
- {report_manager.getHandledTodayCount() === 0 - ? "Daily report goal: " + DAILY_REPORT_GOAL - : ""} -
+ + {report_manager.getReportsLeftUntilGoal() > 0 && ( +
+ {report_manager.getHandledTodayCount() === 0 + ? "Daily report goal: " + DAILY_REPORT_GOAL + : ""} +
+ )} )}