From 691b09afe4790fd1a04ef94385c510885b09f47c Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Sat, 17 Feb 2024 10:49:06 +0000 Subject: [PATCH] fix: setPreferredCurrency function --- blue_modules/currency.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/blue_modules/currency.ts b/blue_modules/currency.ts index f23ae91e2..bd69658b0 100644 --- a/blue_modules/currency.ts +++ b/blue_modules/currency.ts @@ -28,6 +28,7 @@ let lastTimeUpdateExchangeRateWasCalled: number = 0; let skipUpdateExchangeRate: boolean = false; async function setPreferredCurrency(item: FiatUnitType): Promise { + await AsyncStorage.setItem(PREFERRED_CURRENCY_STORAGE_KEY, JSON.stringify(item)); await DefaultPreference.setName(GROUP_IO_BLUEWALLET); await DefaultPreference.set(PREFERRED_CURRENCY_STORAGE_KEY, item.endPointKey); await DefaultPreference.set(PREFERRED_CURRENCY_LOCALE_STORAGE_KEY, item.locale.replace('-', '_'));