[skip ci] fix issues from code review

This commit is contained in:
Godwin Asuquo
2022-12-13 18:26:25 +01:00
parent 0d889416d4
commit dbf214ee1b
3 changed files with 8 additions and 9 deletions
@@ -35,7 +35,7 @@ abstract class IoniaCustomRedeemViewModelBase with Store {
@action
void updateAmount(String text) {
amount = text.isEmpty ? 0 : (double.parse(text.replaceAll(',', '.')));
amount = double.tryParse(text.replaceAll(',', '.')) ?? 0;
}
@action