Skip to content

Commit bf109fc

Browse files
committed
fix: теперь при ошибке пароля показывается: Пароль слишком простой.
1 parent 6200fa5 commit bf109fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/sign-up/sign-up.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const SignUp = ({ extraClass = "" }) => {
6262
if (typeof err.username === "object") {
6363
setErrorLogin("Пользователь с таким именем уже зарегистрирован");
6464
} else if (typeof err.password === "object") {
65-
setErrorPassword(err.password[0]);
65+
setErrorPassword("Пароль слишком простой");
6666
} else {
6767
setErrorDoublePassword("Ошибка сервера");
6868
}

0 commit comments

Comments
 (0)