This commit is contained in:
Robert Malikowski
2026-08-23 12:10:29 +02:00
parent e4b62b3814
commit 0260f3dc72
+1 -1
View File
@@ -172,7 +172,7 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
}
Money? amountForQuote(Quote quote) => Money.trySafeParse(
(double.parse(fiatAmount) / quote.rate).toStringAsFixed(min(20, cryptoCurrency.decimals)),
(double.tryParse(fiatAmount) ?? 0 / quote.rate).toStringAsFixed(min(20, cryptoCurrency.decimals)),
cryptoCurrency);
Money? fiatAmountForQuote(Quote quote) {