diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-07-19 03:09:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 03:09:35 +0800 |
commit | 3236c9869d17954e691ffdbb43f2c9d7f8903104 (patch) | |
tree | 26f44e60aae90a378f0935d39496fb4817b1facc | |
parent | 046ca5787b4092c3f41560e2d0cb10826a56b9dc (diff) | |
parent | 96cd087c9756ba8c9824af835c87c5a2a6512fee (diff) | |
download | tangerine-wallet-browser-3236c9869d17954e691ffdbb43f2c9d7f8903104.tar tangerine-wallet-browser-3236c9869d17954e691ffdbb43f2c9d7f8903104.tar.gz tangerine-wallet-browser-3236c9869d17954e691ffdbb43f2c9d7f8903104.tar.bz2 tangerine-wallet-browser-3236c9869d17954e691ffdbb43f2c9d7f8903104.tar.lz tangerine-wallet-browser-3236c9869d17954e691ffdbb43f2c9d7f8903104.tar.xz tangerine-wallet-browser-3236c9869d17954e691ffdbb43f2c9d7f8903104.tar.zst tangerine-wallet-browser-3236c9869d17954e691ffdbb43f2c9d7f8903104.zip |
Merge pull request #463 from MetaMask/aust-zero-changes
Aust zero changes
-rw-r--r-- | ui/app/util.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/util.js b/ui/app/util.js index a08006077..04ebcecdb 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -123,7 +123,12 @@ function generateBalanceObject (formattedBalance, decimalsToKeep = 1) { var shortBalance = shortenBalance(balance, decimalsToKeep) if (beforeDecimal === '0' && afterDecimal.substr(0, 5) === '00000') { - balance = '<1.0e-5' + // eslint-disable-next-line eqeqeq + if (afterDecimal == 0) { + balance = '0' + } else { + balance = '<1.0e-5' + } } else if (beforeDecimal !== '0') { balance = `${beforeDecimal}.${afterDecimal.slice(0, decimalsToKeep)}` } |