diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-24 11:02:50 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-24 11:05:43 +0800 |
commit | 47737d4d0fce56454c9ee2b43782b824b88cb942 (patch) | |
tree | 808d167f371963ad858002a7bb631c7a8906d029 /packages/instant/src/util | |
parent | 2e184f081e546acbc8ed3e5e05de5a9e5b56a3d8 (diff) | |
download | dexon-0x-contracts-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.gz dexon-0x-contracts-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.zst dexon-0x-contracts-47737d4d0fce56454c9ee2b43782b824b88cb942.zip |
feat: cover more token symbol edge cases
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r-- | packages/instant/src/util/format.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/util/format.ts b/packages/instant/src/util/format.ts index 8482b1526..ca7c01359 100644 --- a/packages/instant/src/util/format.ts +++ b/packages/instant/src/util/format.ts @@ -24,7 +24,7 @@ export const format = { if (_.isUndefined(ethUnitAmount)) { return defaultText; } - const roundedAmount = ethUnitAmount.round(decimalPlaces); + const roundedAmount = ethUnitAmount.round(decimalPlaces).toDigits(decimalPlaces); return `${roundedAmount} ETH`; }, ethBaseAmountInUsd: ( |