From e290df6371c89659c7c9327a7dd0a0c487f86375 Mon Sep 17 00:00:00 2001 From: Sayali Joshi Date: Wed, 21 Jan 2026 17:56:40 +0530 Subject: [PATCH] fix added for login api response changed to error_code --- ui/src/pages/Login/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/Login/index.tsx b/ui/src/pages/Login/index.tsx index ff80ede1..dc8f6b00 100644 --- a/ui/src/pages/Login/index.tsx +++ b/ui/src/pages/Login/index.tsx @@ -147,7 +147,7 @@ const Login: FC = () => { }; const response = await userSession(userAuth?.user); - if (response?.status === 294 && response?.data?.error_message === TFA_MESSAGE) { + if ((response?.status === 294 || response?.data?.error_code === 294) && response?.data?.error_message === TFA_MESSAGE) { setIsLoading(false); setLoginStates((prev) => ({ ...prev, tfa: true })); }