Skip to content

Commit a10d7be

Browse files
committed
remove broken currencies
1 parent 1f44b5e commit a10d7be

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

src/store/index.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,18 @@ const store = new Vuex.Store({
298298

299299
async function updateMetadata() {
300300
try {
301-
const usd = await getExchangeRate('usd'),
302-
eur = await getExchangeRate('eur');
303-
301+
const [usd, eur, jpy, cny, btc, eth] = await Promise.all([
302+
getExchangeRate('usd'),
303+
getExchangeRate('eur'),
304+
getExchangeRate('cad'),
305+
getExchangeRate('gbp'),
306+
getExchangeRate('jpy'),
307+
getExchangeRate('cny'),
308+
getExchangeRate('btc'),
309+
getExchangeRate('eth')
310+
]);
304311
store.dispatch('setExchangeRate', {
305-
siacoin: {
306-
usd: usd,
307-
eur: eur
308-
}
312+
usd, eur, jpy, cny, btc, eth
309313
});
310314
} catch (ex) {
311315
console.error('updatingMeta', ex);

src/views/Settings.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,15 @@
1010
<select v-model="newCurrency" @change="setCurrency(newCurrency)">
1111
<optgroup :label="translate('currency.fiat')">
1212
<option value="usd">{{ translate('currency.usd') }}</option>
13-
<option value="jpy">{{ translate('currency.jpy') }}</option>
1413
<option value="eur">{{ translate('currency.eur') }}</option>
1514
<option value="gbp">{{ translate('currency.gbp') }}</option>
16-
<option value="aus">{{ translate('currency.aus') }}</option>
15+
<option value="jpy">{{ translate('currency.jpy') }}</option>
1716
<option value="cad">{{ translate('currency.cad') }}</option>
18-
<option value="rub">{{ translate('currency.rub') }}</option>
1917
<option value="cny">{{ translate('currency.cny') }}</option>
2018
</optgroup>
2119
<optgroup :label="translate('currency.crypto')">
2220
<option value="btc">{{ translate('currency.btc') }}</option>
23-
<option value="bch">{{ translate('currency.bch') }}</option>
2421
<option value="eth">{{ translate('currency.eth') }}</option>
25-
<option value="xrp">{{ translate('currency.xrp') }}</option>
26-
<option value="ltc">{{ translate('currency.ltc') }}</option>
2722
</optgroup>
2823
</select>
2924
</div>

0 commit comments

Comments
 (0)