mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-03 12:24:19 +01:00
[skip ci] fix issues from code review
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user