mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
parse -> tryParse in fiat
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user