fix: Node Issues (#2498)

- Allow adding new nodes without port
- Replace default port number for empty string when there's no port added
This commit is contained in:
David Adegoke
2025-09-05 16:41:11 +03:00
committed by GitHub
parent 067313e077
commit f0ca065a48
3 changed files with 12 additions and 8 deletions
+6 -4
View File
@@ -4,8 +4,10 @@ import 'package:cake_wallet/core/validator.dart';
class NodePortValidator extends TextValidator {
NodePortValidator()
: super(
errorMessage: S.current.error_text_node_port,
minLength: 0,
maxLength: 5,
pattern: '^[0-9]');
errorMessage: S.current.error_text_node_port,
minLength: 0,
maxLength: 5,
pattern: '^[0-9]',
isAutovalidate: true,
);
}