Skip to content

Commit

Permalink
Merge pull request #795 from ita-social-projects/#793-LogInRemoveRedu…
Browse files Browse the repository at this point in the history
…ndantToastMessages

remove redundant toast messages
  • Loading branch information
Lvyshnevska authored Sep 25, 2024
2 parents d775510 + 5bca759 commit cdf98a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FrontEnd/src/pages/Authorization/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cdf98a7

Please sign in to comment.