From 61a835eca74372b7954a278c01b72f122e190c50 Mon Sep 17 00:00:00 2001 From: kirengamartial Date: Thu, 1 Aug 2024 22:32:23 +0200 Subject: [PATCH] send message for blocked users --- src/pages/Login.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index c20f735..00b0a0c 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -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");