Skip to content

Commit 1285d34

Browse files
cursoragentyashjoisar
andcommitted
Fix: Limit currency formatting to 2 decimal places
Co-authored-by: yashjoisar <[email protected]>
1 parent 3d996d1 commit 1285d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/formatTokenBalance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function formatMoney(
4949
return new Intl.NumberFormat(locale, {
5050
style: "currency",
5151
currency: currencyCode,
52-
maximumFractionDigits: 5,
52+
maximumFractionDigits: 2,
5353
minimumFractionDigits: 0,
5454
}).format(value);
5555
}

0 commit comments

Comments
 (0)