Skip to content

Commit

Permalink
Fix 'All done thank you' being 0 width text in reports center
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Dec 4, 2023
1 parent 2f34b1c commit 24711a4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/views/ReportsCenter/ReportsCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ export function ReportsCenter(): JSX.Element {
className="progress-bar primary"
style={{
width: `${
(Math.min(
DAILY_REPORT_GOAL,
report_manager.getHandledTodayCount(),
) /
DAILY_REPORT_GOAL) *
100
report_manager.getReportsLeftUntilGoal() <= 0
? 100
: (Math.min(
DAILY_REPORT_GOAL,
report_manager.getHandledTodayCount(),
) /
DAILY_REPORT_GOAL) *
100
}%`,
}}
>
Expand Down

0 comments on commit 24711a4

Please sign in to comment.