diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-08-19 07:01:40 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-08-19 07:01:40 +0800 |
commit | 683651e75de0f1e01da94c7ed4a35db65f2251be (patch) | |
tree | b07e5faf7d3337443efdfd3f73d4c6ab5bbc5f35 /ui/app/util.js | |
parent | 4cebf12bb51fba192a59eb550d34c9cf8b31a761 (diff) | |
download | tangerine-wallet-browser-683651e75de0f1e01da94c7ed4a35db65f2251be.tar tangerine-wallet-browser-683651e75de0f1e01da94c7ed4a35db65f2251be.tar.gz tangerine-wallet-browser-683651e75de0f1e01da94c7ed4a35db65f2251be.tar.bz2 tangerine-wallet-browser-683651e75de0f1e01da94c7ed4a35db65f2251be.tar.lz tangerine-wallet-browser-683651e75de0f1e01da94c7ed4a35db65f2251be.tar.xz tangerine-wallet-browser-683651e75de0f1e01da94c7ed4a35db65f2251be.tar.zst tangerine-wallet-browser-683651e75de0f1e01da94c7ed4a35db65f2251be.zip |
Lint and changelog.
Diffstat (limited to 'ui/app/util.js')
-rw-r--r-- | ui/app/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/util.js b/ui/app/util.js index ce52348c8..2d1c753dd 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -149,10 +149,10 @@ function shortenBalance (balance, decimalsToKeep = 1) { return '0' } else if (convertedBalance < 0.001) { return '<0.001' - } else if (convertedBalance < 1) { + } else if (convertedBalance < 1) { var stringBalance = convertedBalance.toString() if (stringBalance.split('.')[1].length > 3) { - return convertedBalance.toFixed(3); + return convertedBalance.toFixed(3) } else { return stringBalance } |