Skip to content

Commit 17e982b

Browse files
Merge pull request #151 from thangmoxielabs/main
Fix password validator
2 parents 4eb8c42 + 312c532 commit 17e982b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/identity/password_validator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ class PasswordValidator extends BaseValidator<String> {
7979
),
8080
],
8181
).call(valueCandidate);
82-
return result != null && errorText != '' ? errorText : result;
82+
return result != null ? errorText ?? result : null;
8383
}
8484
}

0 commit comments

Comments
 (0)