Skip to content

Commit b8ce386

Browse files
committed
refactor(subscription): adjust currency formatting
1 parent 5f584c2 commit b8ce386

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/routes/account/-components/subscription.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function formatCurrency(amount: number) {
2222
style: 'currency',
2323
currency: 'USD',
2424
currencyDisplay: 'narrowSymbol',
25-
maximumFractionDigits: 0,
26-
minimumFractionDigits: 0,
25+
minimumFractionDigits: amount % 1 === 0 ? 0 : 2,
26+
maximumFractionDigits: 2,
2727
}).format(amount)
2828
}
2929

0 commit comments

Comments
 (0)