From dd71edd8c8db0dfde180a0fbd2ca4ba8c4e59174 Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Tue, 24 Nov 2020 14:42:26 +0200 Subject: [PATCH] CAKE-185 | fixed _amount in the changeDepositAmount() method (exchange_view_model.dart) --- lib/view_model/exchange/exchange_view_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view_model/exchange/exchange_view_model.dart b/lib/view_model/exchange/exchange_view_model.dart index 1b14980dd..8c001260c 100644 --- a/lib/view_model/exchange/exchange_view_model.dart +++ b/lib/view_model/exchange/exchange_view_model.dart @@ -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,