Skip to content

Commit

Permalink
Fix goal text when reports are all done
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Dec 4, 2023
1 parent 24711a4 commit 5a813b8
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/views/ReportsCenter/ReportsCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,22 @@ export function ReportsCenter(): JSX.Element {
? "All done, thank you!"
: report_manager.getHandledTodayCount() || ""}
</div>
<div
className="progress-bar empty"
style={{
width: `${
(report_manager.getReportsLeftUntilGoal() / DAILY_REPORT_GOAL) * 100
}%`,
}}
>
{report_manager.getHandledTodayCount() === 0
? "Daily report goal: " + DAILY_REPORT_GOAL
: ""}
</div>

{report_manager.getReportsLeftUntilGoal() > 0 && (
<div
className="progress-bar empty"
style={{
width: `${
(report_manager.getReportsLeftUntilGoal() / DAILY_REPORT_GOAL) *
100
}%`,
}}
>
{report_manager.getHandledTodayCount() === 0
? "Daily report goal: " + DAILY_REPORT_GOAL
: ""}
</div>
)}
</div>
)}

Expand Down

0 comments on commit 5a813b8

Please sign in to comment.