CAKE-185 | fixed _amount in the changeDepositAmount() method (exchange_view_model.dart)

This commit is contained in:
OleksandrSobol 2020-11-24 14:42:26 +02:00
parent 1afe4255a7
commit dd71edd8c8

View file

@ -174,7 +174,7 @@ abstract class ExchangeViewModelBase with Store {
return; return;
} }
final _amount = double.parse(amount.replaceAll(',', '.')); final _amount = double.parse(amount.replaceAll(',', '.')) ?? 0;
provider provider
.calculateAmount( .calculateAmount(
from: depositCurrency, from: depositCurrency,