Skip to content

ui(score-card): remove fraction digits from displayed value#87

Merged
O2sa merged 1 commit intoO2sa:mainfrom
mvanhorn:osc/85-remove-fraction-digits
Apr 20, 2026
Merged

ui(score-card): remove fraction digits from displayed value#87
O2sa merged 1 commit intoO2sa:mainfrom
mvanhorn:osc/85-remove-fraction-digits

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

Closes #85.

Single-line change at components/score-card.tsx:21:

-          {value.toFixed(2)}
+          {value}

Renders whole numbers (and natural float precision for non-integer values) instead of forcing two-decimal display, matching the issue's acceptance task list:

  • Open components/score-card.tsx
  • Locate line 21
  • Change {value.toFixed(2)} to {value}

No other files changed. The component's only consumer of this display is the score card itself, and callers already pass rounded numbers in the common case.

Closes O2sa#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.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

@mvanhorn is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

@O2sa O2sa merged commit 84304c4 into O2sa:main Apr 20, 2026
1 of 2 checks passed
@O2sa
Copy link
Copy Markdown
Owner

O2sa commented Apr 20, 2026

Congratulations @mvanhorn 🎊 Your first contribution has been merged! 🚀

Thank you for helping improve the project. If you find this tool useful, please consider giving us a ⭐ star on GitHub—it helps more developers find our work!

@mvanhorn
Copy link
Copy Markdown
Contributor Author

Thanks @O2sa! Happy to contribute — starred.

@mvanhorn
Copy link
Copy Markdown
Contributor Author

Thanks for landing the score-card cleanup, @O2sa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui: Remove fraction digits from score-card

2 participants