mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix decimals exception
This commit is contained in:
@@ -175,7 +175,7 @@ abstract class BuySellViewModelBase extends WalletChangeListenerViewModel with S
|
||||
}
|
||||
|
||||
Money amountForQuote(Quote quote) =>
|
||||
Money.parse(double.parse(fiatAmount) / quote.rate, cryptoCurrency);
|
||||
Money.parse((double.parse(fiatAmount) / quote.rate).toStringAsFixed(cryptoCurrency.decimals), cryptoCurrency);
|
||||
|
||||
Money fiatAmountForQuote(Quote quote) {
|
||||
return Money.parse(
|
||||
|
||||
Reference in New Issue
Block a user