diff options
Merge branch 'master' into ConfirmationStyle
Diffstat (limited to 'ui/app/util.js')
-rw-r--r-- | ui/app/util.js | 2 |
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)}` |