diff --git a/FrontEnd/src/pages/Authorization/LoginPage.jsx b/FrontEnd/src/pages/Authorization/LoginPage.jsx index aa44ae70..ea2c5bec 100644 --- a/FrontEnd/src/pages/Authorization/LoginPage.jsx +++ b/FrontEnd/src/pages/Authorization/LoginPage.jsx @@ -57,13 +57,14 @@ const LoginContent = () => { errorMessage = errors.password.message; } else if (errors.unspecifiedError?.message) { errorMessage = errors.unspecifiedError.message; + toast.error(errorMessage); } else if (errors.rateError?.message) { errorMessage = errors.rateError.message; + toast.error(errorMessage); } else if (errors.blockedUserError?.message) { errorMessage = errors.blockedUserError.message; + toast.error(errorMessage); } - - errorMessage && toast.error(errorMessage); }, [ errors.email?.message, errors.password?.message,