aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-07-01 03:43:28 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-07-01 05:53:24 +0800
commit42cd0b69e76537022c7766cae430e496371818b6 (patch)
tree82fc05d30ed924fc68519258a0076aae15c8a668 /ui/app/util.js
parent5252504e3f1b8437d6152861f06ee490f723276e (diff)
downloadtangerine-wallet-browser-42cd0b69e76537022c7766cae430e496371818b6.tar.gz
tangerine-wallet-browser-42cd0b69e76537022c7766cae430e496371818b6.tar.zst
tangerine-wallet-browser-42cd0b69e76537022c7766cae430e496371818b6.zip
Implemt new account layout
Diffstat (limited to 'ui/app/util.js')
-rw-r--r--ui/app/util.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index a88e659b4..db12a1282 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -105,14 +105,14 @@ function formatBalance (balance, decimalsToKeep) {
if (afterDecimal !== '0') {
var sigFigs = afterDecimal.match(/^0*(.{2})/) // default: grabs 2 most significant digits
if (sigFigs) { afterDecimal = sigFigs[0] }
- formatted = ['0.' + afterDecimal, ' ETH']
+ formatted = '0.' + afterDecimal + ' ETH'
}
} else {
- formatted = [beforeDecimal + '.' + afterDecimal.slice(0, 3), ' ETH']
+ formatted = beforeDecimal + '.' + afterDecimal.slice(0, 3) + ' ETH'
}
} else {
afterDecimal += Array(decimalsToKeep).join('0')
- formatted = [beforeDecimal + '.' + afterDecimal.slice(0, decimalsToKeep), ' ETH']
+ formatted = beforeDecimal + '.' + afterDecimal.slice(0, decimalsToKeep) + ' ETH'
}
return formatted
}