mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 04:13:49 +01:00
FIX: change faulty exchange rate API
This commit is contained in:
parent
2c4fa5d784
commit
96b676603f
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ async function _restoreSavedPreferredFiatCurrencyFromStorage() {
|
|||
if (preferredFiatCurrency === null) {
|
||||
throw Error('No Preferred Fiat selected');
|
||||
}
|
||||
|
||||
preferredFiatCurrency = FiatUnit[preferredFiatCurrency.endPointKey] || preferredFiatCurrency;
|
||||
// ^^^ in case configuration in json file changed (and is different from what we stored) we reload it
|
||||
} catch (_) {
|
||||
const deviceCurrencies = RNLocalize.getCurrencies();
|
||||
if (Object.keys(FiatUnit).some(unit => unit === deviceCurrencies[0])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue