Skip to content

Commit

Permalink
исправил описание ошибки при регистрации при неверно введенных данныч
Browse files Browse the repository at this point in the history
  • Loading branch information
karlbelousov committed May 9, 2024
1 parent 6162d04 commit 1a2cf95
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/App/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,9 @@ const App = () => {
navigate('/');
}, 1000);
})
.catch((res) => {
.catch(() => {
setInfoTooltipImage(imageError);
if (res.status === 400) {
setMessage('Пользователь с таким e-mail уже зарегистрирован.');
} else {
setMessage('Что-то пошло не так! Попробуйте ещё раз.');
}
setMessage('Что-то пошло не так! Попробуйте ещё раз.');
setInfoTooltipOpen(true);
setTimeout(closeInfoTooltip, 15000);
});
Expand Down

0 comments on commit 1a2cf95

Please sign in to comment.