aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-08-17 05:51:55 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-08-17 05:51:55 +0800
commit121af0c4b9fd12e9960cbf5bbb3203819b854eb7 (patch)
treebe11a02cd6aa2ff9b31a66f2cf74f00dc681eb1c
parent5afaebe6028953f35de6d033c29d86d879273a30 (diff)
downloadtangerine-wallet-browser-121af0c4b9fd12e9960cbf5bbb3203819b854eb7.tar
tangerine-wallet-browser-121af0c4b9fd12e9960cbf5bbb3203819b854eb7.tar.gz
tangerine-wallet-browser-121af0c4b9fd12e9960cbf5bbb3203819b854eb7.tar.bz2
tangerine-wallet-browser-121af0c4b9fd12e9960cbf5bbb3203819b854eb7.tar.lz
tangerine-wallet-browser-121af0c4b9fd12e9960cbf5bbb3203819b854eb7.tar.xz
tangerine-wallet-browser-121af0c4b9fd12e9960cbf5bbb3203819b854eb7.tar.zst
tangerine-wallet-browser-121af0c4b9fd12e9960cbf5bbb3203819b854eb7.zip
Lint.
-rw-r--r--ui/app/components/account-eth-balance.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/app/components/account-eth-balance.js b/ui/app/components/account-eth-balance.js
index d5fc9a80f..bcef40096 100644
--- a/ui/app/components/account-eth-balance.js
+++ b/ui/app/components/account-eth-balance.js
@@ -46,15 +46,16 @@ EthBalanceComponent.prototype.render = function () {
EthBalanceComponent.prototype.renderBalance = function (value, state) {
if (value === 'None') return value
var balanceObj = generateBalanceObject(value, state.shorten ? 1 : 3)
- var balance
+ var balance, fiatNumber
var splitBalance = value.split(' ')
var ethNumber = splitBalance[0]
var ethSuffix = splitBalance[1]
+
if (state.conversionRate !== 'N/A') {
- var fiatNumber = (Number(splitBalance[0]) * state.conversionRate).toFixed(2)
+ fiatNumber = (Number(splitBalance[0]) * state.conversionRate).toFixed(2)
} else {
- var fiatNumber = 'N/A'
+ fiatNumber = 'N/A'
}
var fiatSuffix = state.currentFiat
@@ -100,7 +101,7 @@ EthBalanceComponent.prototype.renderBalance = function (value, state) {
position: 'bottom',
title: `${fiatNumber} ${fiatSuffix}`,
}, [
- fiatDisplay (fiatNumber, fiatSuffix)
+ fiatDisplay(fiatNumber, fiatSuffix),
]),
])
)