mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-20 06:08:34 +02: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