We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043ee0d commit 64ea9afCopy full SHA for 64ea9af
src/utils/coinFormatter.ts
@@ -52,5 +52,6 @@ export const formatFiat = (amount: BN) => {
52
};
53
54
export const formatFiatUI = (amount: number) => {
55
- return isNaN(amount) ? amount : '$' + amount;
+ const _amount = String(amount).replace(/,/g, '');
56
+ return isNaN(Number(_amount)) ? amount : '$' + amount;
57
0 commit comments