diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-08-17 05:07:06 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-08-17 05:07:06 +0800 |
commit | 6041ba1ed24b16ec2614c954b05ab03488301d72 (patch) | |
tree | d900eb7e085060ffd3a01d8b59f36261a1d7777f /app | |
parent | da2527ddb4a1d78eba1126785dfe1583161a80fc (diff) | |
download | tangerine-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 'app')
-rw-r--r-- | app/scripts/lib/config-manager.js | 2 |
1 files changed, 2 insertions, 0 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') }) } |