CAKE-185 | fixed _amount in the changeDepositAmount() method (exchange_view_model.dart)
OleksandrSobol committed
Nov 24, 2020 at 14:42 UTC
dd71edd8c8db0dfde180a0fbd2ca4ba8c4e59174
1 file changed
+1
-1
lib/view_model/exchange/exchange_view_model.dart
+1
-1
@@ -174,7 +174,7 @@ abstract class ExchangeViewModelBase with Store {
174
return;
175
}
176
177
- final _amount = double.parse(amount.replaceAll(',', '.'));
177
+ final _amount = double.parse(amount.replaceAll(',', '.')) ?? 0;
178
provider
179
.calculateAmount(
180
from: depositCurrency,