From 2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 5 Jul 2016 15:16:40 -0700 Subject: Simplify empty account balance rendering --- test/unit/util_test.js | 2 +- ui/app/util.js | 2 +- 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') { -- cgit v1.2.3