mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CAKE-185 | fixed _amount in the changeDepositAmount() method (exchange_view_model.dart)
This commit is contained in:
@@ -174,7 +174,7 @@ abstract class ExchangeViewModelBase with Store {
|
||||
return;
|
||||
}
|
||||
|
||||
final _amount = double.parse(amount.replaceAll(',', '.'));
|
||||
final _amount = double.parse(amount.replaceAll(',', '.')) ?? 0;
|
||||
provider
|
||||
.calculateAmount(
|
||||
from: depositCurrency,
|
||||
|
||||
Reference in New Issue
Block a user