aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-07 13:56:07 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-07 13:56:07 +0800
commita1fdf28a7bff23a1d084da8a91909aeaa969bb73 (patch)
tree5ff51a4a10d339ec51036a18a23bfa7bee869921 /ui/app/util.js
parent9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40 (diff)
parentecfe720b8bb0429c2d73b3a03d5dbf1d7cf573a7 (diff)
downloadtangerine-wallet-browser-a1fdf28a7bff23a1d084da8a91909aeaa969bb73.tar
tangerine-wallet-browser-a1fdf28a7bff23a1d084da8a91909aeaa969bb73.tar.gz
tangerine-wallet-browser-a1fdf28a7bff23a1d084da8a91909aeaa969bb73.tar.bz2
tangerine-wallet-browser-a1fdf28a7bff23a1d084da8a91909aeaa969bb73.tar.lz
tangerine-wallet-browser-a1fdf28a7bff23a1d084da8a91909aeaa969bb73.tar.xz
tangerine-wallet-browser-a1fdf28a7bff23a1d084da8a91909aeaa969bb73.tar.zst
tangerine-wallet-browser-a1fdf28a7bff23a1d084da8a91909aeaa969bb73.zip
Merge branch 'master' into ConfirmationStyle
Diffstat (limited to 'ui/app/util.js')
-rw-r--r--ui/app/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 1e92f0ea2..0a243387a 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -116,7 +116,7 @@ function formatBalance (balance, decimalsToKeep) {
if (afterDecimal !== '0') {
var sigFigs = afterDecimal.match(/^0*(.{2})/) // default: grabs 2 most significant digits
if (sigFigs) { afterDecimal = sigFigs[0] }
- formattedBalance = `0.${afterDecimal.slice(0, 6)}`
+ formattedBalance = afterDecimal.substr(0, 5) === '00000' ? '<0.00001' : `0.${afterDecimal.slice(0, 6)}`
}
} else {
formattedBalance = `${beforeDecimal}.${afterDecimal.slice(0, 2)}`