add Disable fiat mode

This commit is contained in:
Serhii
2022-11-04 13:58:04 +02:00
parent 289f382eda
commit d4c7004a3c
11 changed files with 76 additions and 32 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ Future<void> startFiatRateUpdate(AppStore appStore, SettingsStore settingsStore,
if (appStore.wallet!.type == WalletType.haven) {
await updateHavenRate(fiatConversionStore);
} else {
fiatConversionStore.prices[appStore.wallet!.currency] = await FiatConversionService.fetchPrice(
fiatConversionStore.prices[appStore.wallet!.currency] =
settingsStore.shouldDisableFiat ? 0.0
: await FiatConversionService.fetchPrice(
appStore.wallet!.currency, settingsStore.fiatCurrency);
}
} catch(e) {