aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/scripts/lib/config-manager.js2
-rw-r--r--ui/app/components/account-eth-balance.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index f3164ec09..44617f0ed 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -291,6 +291,8 @@ ConfigManager.prototype.updateConversionRate = function () {
this.setConversionDate(parsedResponse.timestamp)
}).catch((err) => {
console.error('Error in conversion.', err)
+ this.setConversionPrice('N/A')
+ this.setConversionDate('N/A')
})
}
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',