aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/currency.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-10-19 19:08:04 +0800
committerkumavis <aaron@kumavis.me>2018-10-19 19:08:04 +0800
commita57d267dcbfa1a75a5ce3295e51825561e42c58d (patch)
tree731a5fbe98820167bd6ef20e56eb3f8dccef1e1d /app/scripts/controllers/currency.js
parentb85ae55cd59b4f8fe52ec75e1b7c6efe52a02e3f (diff)
downloadtangerine-wallet-browser-a57d267dcbfa1a75a5ce3295e51825561e42c58d.tar
tangerine-wallet-browser-a57d267dcbfa1a75a5ce3295e51825561e42c58d.tar.gz
tangerine-wallet-browser-a57d267dcbfa1a75a5ce3295e51825561e42c58d.tar.bz2
tangerine-wallet-browser-a57d267dcbfa1a75a5ce3295e51825561e42c58d.tar.lz
tangerine-wallet-browser-a57d267dcbfa1a75a5ce3295e51825561e42c58d.tar.xz
tangerine-wallet-browser-a57d267dcbfa1a75a5ce3295e51825561e42c58d.tar.zst
tangerine-wallet-browser-a57d267dcbfa1a75a5ce3295e51825561e42c58d.zip
lint fix
Diffstat (limited to 'app/scripts/controllers/currency.js')
-rw-r--r--app/scripts/controllers/currency.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/scripts/controllers/currency.js b/app/scripts/controllers/currency.js
index 619c515fa..6cb39d39a 100644
--- a/app/scripts/controllers/currency.js
+++ b/app/scripts/controllers/currency.js
@@ -1,6 +1,5 @@
const ObservableStore = require('obs-store')
const extend = require('xtend')
-const log = require('loglevel')
// every ten minutes
const POLLING_INTERVAL = 600000
@@ -118,7 +117,7 @@ class CurrencyController {
try {
rawResponse = await response.text()
parsedResponse = JSON.parse(rawResponse)
- } catch () {
+ } catch (err) {
throw new Error(`CurrencyController - Failed to parse response "${rawResponse}"`)
}
this.setConversionRate(Number(parsedResponse.bid))