diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-09-07 07:45:06 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-09-07 07:45:06 +0800 |
commit | 09dd854a96c2756be02d5043be40089a097cadc1 (patch) | |
tree | 6655bd79eb0ae35d3630fa88995cb15b2f5f26d0 /ui/app/components/eth-balance.js | |
parent | 58a8f02294eb1079d92cdf1e6d05a74a224029c3 (diff) | |
download | tangerine-wallet-browser-09dd854a96c2756be02d5043be40089a097cadc1.tar.gz tangerine-wallet-browser-09dd854a96c2756be02d5043be40089a097cadc1.tar.zst tangerine-wallet-browser-09dd854a96c2756be02d5043be40089a097cadc1.zip |
Nearly finished factoring fiat value into eth-balance
Diffstat (limited to 'ui/app/components/eth-balance.js')
-rw-r--r-- | ui/app/components/eth-balance.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js index 055cf6dd3..c77bda626 100644 --- a/ui/app/components/eth-balance.js +++ b/ui/app/components/eth-balance.js @@ -19,7 +19,6 @@ EthBalanceComponent.prototype.render = function () { var needsParse = this.props.needsParse !== undefined ? this.props.needsParse : true const value = formatBalance(props.value, 6, needsParse) var width = props.width - const showFiat = 'showFiat' in props ? props.showFiat : true return ( @@ -44,6 +43,7 @@ EthBalanceComponent.prototype.renderBalance = function (value) { var splitBalance = value.split(' ') var ethNumber = splitBalance[0] var ethSuffix = splitBalance[1] + const showFiat = 'showFiat' in props ? props.showFiat : true if (props.shorten) { balance = balanceObj.shortBalance @@ -80,7 +80,7 @@ EthBalanceComponent.prototype.renderBalance = function (value) { }, label), ]), - fiatValue ? h(FiatValue, { value: props.value }) : null, + showFiat ? h(FiatValue, { value: props.value }) : null, ]) ) } |