fix auto valid for receive screen (#834)
Serhii committed
Mar 17, 2023 at 13:33 UTC
df525169642aabd4bb78188a4305c72acf06f562
1 file changed
+2
-2
lib/core/amount_validator.dart
+2
-2
@@ -6,7 +6,7 @@ class AmountValidator extends TextValidator {
6
AmountValidator({required CryptoCurrency currency, bool isAutovalidate = false}) {
7
symbolsAmountValidator =
8
SymbolsAmountValidator(isAutovalidate: isAutovalidate);
9
- decimalAmountValidator = DecimalAmountValidator(currency: currency);
9
+ decimalAmountValidator = DecimalAmountValidator(currency: currency,isAutovalidate: isAutovalidate);
10
}
11
12
late final SymbolsAmountValidator symbolsAmountValidator;
@@ -29,7 +29,7 @@ class SymbolsAmountValidator extends TextValidator {
29
}
30
31
class DecimalAmountValidator extends TextValidator {
32
- DecimalAmountValidator({required CryptoCurrency currency, bool isAutovalidate = false})
32
+ DecimalAmountValidator({required CryptoCurrency currency, required bool isAutovalidate })
33
: super(
34
errorMessage: S.current.decimal_places_error,
35
pattern: _pattern(currency),