Skip to content

Commit 312c532

Browse files
Fix password validator
1 parent 4eb8c42 commit 312c532

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)