CAKE-185 | removed isValidAmount() from exchange_view_model.dart and exchange_page.dart; throw exception in the createTrade() (xmrto_exchange_provider.dart) if number of fractional digits of amount more than 8

This commit is contained in:
OleksandrSobol
2020-12-03 23:22:56 +02:00
parent 27cfad5d95
commit df01fa0314
3 changed files with 20 additions and 31 deletions
+1 -12
View File
@@ -411,18 +411,7 @@ class ExchangePage extends BasePage {
buttonAction: () => Navigator.of(context).pop());
});
} else {
exchangeViewModel.isValidAmount()
? exchangeViewModel.createTrade()
: showPopUp<void>(
context: context,
builder: (BuildContext context) {
return AlertWithOneAction(
alertTitle: S.of(context).xmr_to_error,
alertContent: S.of(context).xmr_to_error_description,
buttonText: S.of(context).ok,
buttonAction: () =>
Navigator.of(context).pop());
});
exchangeViewModel.createTrade();
}
}
},