mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-11 08:44:02 +01:00
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:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user