aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
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
}