aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-06 06:16:40 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-06 06:16:40 +0800
commit2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6 (patch)
tree18a65869964fbe4738eb5db421c101be2c8f9496
parentc4cbe3ad4cb5403ee6f0fa16f68a7e8f9aded4f1 (diff)
downloadtangerine-wallet-browser-2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6.tar
tangerine-wallet-browser-2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6.tar.gz
tangerine-wallet-browser-2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6.tar.bz2
tangerine-wallet-browser-2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6.tar.lz
tangerine-wallet-browser-2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6.tar.xz
tangerine-wallet-browser-2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6.tar.zst
tangerine-wallet-browser-2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6.zip
Simplify empty account balance rendering
-rw-r--r--test/unit/util_test.js2
-rw-r--r--ui/app/util.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/util_test.js b/test/unit/util_test.js
index e2390c8d4..c114e3bcf 100644
--- a/test/unit/util_test.js
+++ b/test/unit/util_test.js
@@ -142,7 +142,7 @@ describe('util', function() {
it('when given nothing', function() {
var result = util.formatBalance()
- assert.equal(result, 'None', 'should return "None"')
+ assert.equal(result, '0 ETH', 'should return "0 ETH"')
})
it('should return eth as string followed by ETH', function() {
diff --git a/ui/app/util.js b/ui/app/util.js
index db12a1282..4181b096f 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -99,7 +99,7 @@ function formatBalance (balance, decimalsToKeep) {
var parsed = parseBalance(balance)
var beforeDecimal = parsed[0]
var afterDecimal = parsed[1]
- var formatted = 'None'
+ var formatted = '0 ETH'
if (decimalsToKeep === undefined) {
if (beforeDecimal === '0') {
if (afterDecimal !== '0') {