fix: update fiat price on fiat currency selection changed

This commit is contained in:
julian 2023-05-29 10:39:14 -06:00
parent 021165eb17
commit 838e623ff2

View file

@ -50,6 +50,10 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
currenciesWithoutSelected.remove(current);
currenciesWithoutSelected.insert(0, current);
ref.read(prefsChangeNotifierProvider).currency = current;
if (ref.read(prefsChangeNotifierProvider).externalCalls) {
ref.read(priceAnd24hChangeNotifierProvider).updatePrice();
}
}
}