Skip to content

Commit

Permalink
Исправлена досадная ошибка
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDxYk594 committed Dec 3, 2024
1 parent 76f4c14 commit ff7a3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const validatePassword = (password: string): IValidationResult => {
if (!hasSpecialSymbol.test(password)) {
validationMessage.push('должен содержать специальный символ');
}
if (validationMessage) {
if (validationMessage.length > 0) {
return { allowed: false, validationMessage: validationMessage.join(', ') };
}
return { allowed: true, validationMessage: undefined };
Expand Down

0 comments on commit ff7a3f7

Please sign in to comment.