mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
fix: update fiat price on fiat currency selection changed
This commit is contained in:
parent
021165eb17
commit
838e623ff2
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
||||||
currenciesWithoutSelected.remove(current);
|
currenciesWithoutSelected.remove(current);
|
||||||
currenciesWithoutSelected.insert(0, current);
|
currenciesWithoutSelected.insert(0, current);
|
||||||
ref.read(prefsChangeNotifierProvider).currency = current;
|
ref.read(prefsChangeNotifierProvider).currency = current;
|
||||||
|
|
||||||
|
if (ref.read(prefsChangeNotifierProvider).externalCalls) {
|
||||||
|
ref.read(priceAnd24hChangeNotifierProvider).updatePrice();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue