mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Don't display cents in CreditsBadge
This commit is contained in:
1 file changed
+2
-2
@@ -28,8 +28,8 @@ export function CreditsBadge({ provider, className, onOpenDialog }: CreditsBadge
|
||||
const formattedAmount = new Intl.NumberFormat('en-US', {
|
||||
style: 'currency',
|
||||
currency: 'USD',
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
minimumFractionDigits: 0,
|
||||
maximumFractionDigits: 0,
|
||||
}).format(credits.amount);
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user