diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-19 07:09:01 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-19 07:09:01 +0800 |
commit | bd8428e9ed3e1fb386620def0739720aa8985299 (patch) | |
tree | d2aefb2c29754360b53c346dfd9e7f98b6a86435 /app/scripts | |
parent | 51cebcc1733e6ac2b1d7fa8841eb937c979cd074 (diff) | |
download | tangerine-wallet-browser-bd8428e9ed3e1fb386620def0739720aa8985299.tar tangerine-wallet-browser-bd8428e9ed3e1fb386620def0739720aa8985299.tar.gz tangerine-wallet-browser-bd8428e9ed3e1fb386620def0739720aa8985299.tar.bz2 tangerine-wallet-browser-bd8428e9ed3e1fb386620def0739720aa8985299.tar.lz tangerine-wallet-browser-bd8428e9ed3e1fb386620def0739720aa8985299.tar.xz tangerine-wallet-browser-bd8428e9ed3e1fb386620def0739720aa8985299.tar.zst tangerine-wallet-browser-bd8428e9ed3e1fb386620def0739720aa8985299.zip |
Comply with current currency API and add additional styling.
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/controllers/currency.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/currency.js b/app/scripts/controllers/currency.js index e32f51ec2..9e696ce55 100644 --- a/app/scripts/controllers/currency.js +++ b/app/scripts/controllers/currency.js @@ -8,7 +8,7 @@ class CurrencyController { constructor (opts = {}) { const initState = extend({ - currentCurrency: 'ethusd', + currentCurrency: 'usd', conversionRate: 0, conversionDate: 'N/A', }, opts.initState) @@ -45,7 +45,7 @@ class CurrencyController { updateConversionRate () { const currentCurrency = this.getCurrentCurrency() - return fetch(`https://api.infura.io/v1/ticker/${currentCurrency}`) + return fetch(`https://api.infura.io/v1/ticker/eth${currentCurrency}`) .then(response => response.json()) .then((parsedResponse) => { this.setConversionRate(Number(parsedResponse.bid)) |