Skip to content

#654 Fix Purchase Amounts Not Showing Two Decimal Places#662

Open
b-at-neu wants to merge 4 commits into
devfrom
654-purchase-amount-decimals
Open

#654 Fix Purchase Amounts Not Showing Two Decimal Places#662
b-at-neu wants to merge 4 commits into
devfrom
654-purchase-amount-decimals

Conversation

@b-at-neu
Copy link
Copy Markdown
Collaborator

Closes #654

formatAbsoluteNumber was using a manual regex approach that, while functionally correct, relied on toFixed(2) — but whole-number amounts were displaying without decimal places in some contexts. Replaced with Intl.NumberFormat with minimumFractionDigits: 2 to enforce two decimal places consistently. All amount display in the app routes through formatCurrency or formatNumber, both of which call this function.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vaultz Ready Ready Preview, Comment Apr 11, 2026 3:42am

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Purchase amounts don't display two decimal places

1 participant