Skip to content

Commit

Permalink
send message for blocked users
Browse files Browse the repository at this point in the history
  • Loading branch information
kirengamartial committed Aug 1, 2024
1 parent 1e67a1b commit 61a835e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ const Login: React.FC = () => {

try {
const res = await login({ email, password }).unwrap();

if(res.message === 'Your account is blocked, check your email to see the reason why') {
return toast.error(res.message)
}
if (res.message === "2FA code sent to your email") {
setIs2FARequired(true);
return toast.success("2FA code sent to your email");
Expand Down

0 comments on commit 61a835e

Please sign in to comment.