aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-08-17 05:07:06 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-08-17 05:07:06 +0800
commit6041ba1ed24b16ec2614c954b05ab03488301d72 (patch)
treed900eb7e085060ffd3a01d8b59f36261a1d7777f /ui
parentda2527ddb4a1d78eba1126785dfe1583161a80fc (diff)
downloadtangerine-wallet-browser-6041ba1ed24b16ec2614c954b05ab03488301d72.tar
tangerine-wallet-browser-6041ba1ed24b16ec2614c954b05ab03488301d72.tar.gz
tangerine-wallet-browser-6041ba1ed24b16ec2614c954b05ab03488301d72.tar.bz2
tangerine-wallet-browser-6041ba1ed24b16ec2614c954b05ab03488301d72.tar.lz
tangerine-wallet-browser-6041ba1ed24b16ec2614c954b05ab03488301d72.tar.xz
tangerine-wallet-browser-6041ba1ed24b16ec2614c954b05ab03488301d72.tar.zst
tangerine-wallet-browser-6041ba1ed24b16ec2614c954b05ab03488301d72.zip
Add fallback to API failure.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/account-eth-balance.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/account-eth-balance.js b/ui/app/components/account-eth-balance.js
index 4cdab235a..260444688 100644
--- a/ui/app/components/account-eth-balance.js
+++ b/ui/app/components/account-eth-balance.js
@@ -59,6 +59,10 @@ EthBalanceComponent.prototype.renderBalance = function (value, state) {
balance = balanceObj.balance
}
+ if (fiatNumber !== 'N/A') {
+ fiatNumber = fiatNumber.toFixed(2)
+ }
+
var label = balanceObj.label
return (
@@ -109,7 +113,7 @@ EthBalanceComponent.prototype.renderBalance = function (value, state) {
fontSize: '12px',
color: '#333333',
},
- }, `= ${fiatNumber.toFixed(2)}`),
+ }, `= ${fiatNumber}`),
h('div', {
style: {
color: '#AEAEAE',