parse -> tryParse in fiat

This commit is contained in:
Robert Malikowski
2026-08-23 15:35:38 +02:00
parent 08978a06ba
commit 185ee4be4f
+2 -2
View File
@@ -180,9 +180,9 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
return null;
}
return Money.safeParse(
return Money.trySafeParse(
(fiatConversionStore.prices[cryptoCurrency]! *
double.parse(amountForQuote(quote).toString()))
(double.tryParse(amountForQuote(quote).toString())??0))
.toStringAsFixed(2),
fiatCurrency);
}