CW-441 xmr price issue (#1005)

* refactor fiat_rate_update

* remove commented line
This commit is contained in:
Matthew Fosse
2023-07-27 04:08:12 +03:00
committed by GitHub
parent da2f1c62f5
commit b28f85350a
2 changed files with 19 additions and 2 deletions
@@ -66,7 +66,8 @@ abstract class BalanceViewModelBase with Store {
final price = fiatConvertationStore.prices[appStore.wallet!.currency];
if (price == null) {
throw Exception('No price for ${appStore.wallet!.currency} (current wallet)');
// price should update on next fetch:
return 0;
}
return price;