There was an error while loading. Please reload this page.
1 parent 5f584c2 commit b8ce386Copy full SHA for b8ce386
1 file changed
apps/web/src/routes/account/-components/subscription.tsx
@@ -22,8 +22,8 @@ function formatCurrency(amount: number) {
22
style: 'currency',
23
currency: 'USD',
24
currencyDisplay: 'narrowSymbol',
25
- maximumFractionDigits: 0,
26
- minimumFractionDigits: 0,
+ minimumFractionDigits: amount % 1 === 0 ? 0 : 2,
+ maximumFractionDigits: 2,
27
}).format(amount)
28
}
29
0 commit comments