Skip to content

Commit

Permalink
Merge pull request #1525 from atsign-foundation/1518-npt_atsign_bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth authored Nov 12, 2024
2 parents 6776bed + c5b23ee commit 4cb9ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dart/npt_flutter/lib/util/form_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FormValidator {

static String? validateRequiredAtsignField(String? value) {
final strings = AppLocalizations.of(App.navState.currentContext!)!;
if (!value!.startsWith('@')) {
if (!value!.startsWith('@') || value.length < 2) {
return strings.validationErrorAtsignField;
}
validateRequiredField(value);
Expand Down

0 comments on commit 4cb9ac0

Please sign in to comment.