Commit 84304c4
authored
ui(score-card): remove fraction digits from displayed value (#87)
Closes #85.
One-line change: `{value.toFixed(2)}` -> `{value}` at line 21 of
components/score-card.tsx to render whole numbers instead of two-decimal
floats for improved readability, per the task list in the issue.
Callers passing already-rounded numbers get the same output; callers
that were previously relying on the forced two-decimal format (e.g.
for consistent visual alignment of 3.00 vs 2.50) lose that formatting
— which is the intended change per the issue.
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>1 parent a7008b6 commit 84304c4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments