Skip to content

Commit e290df6

Browse files
committed
fix added for login api response changed to error_code
1 parent 71ba021 commit e290df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/pages/Login/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const Login: FC<IProps> = () => {
147147
};
148148

149149
const response = await userSession(userAuth?.user);
150-
if (response?.status === 294 && response?.data?.error_message === TFA_MESSAGE) {
150+
if ((response?.status === 294 || response?.data?.error_code === 294) && response?.data?.error_message === TFA_MESSAGE) {
151151
setIsLoading(false);
152152
setLoginStates((prev) => ({ ...prev, tfa: true }));
153153
}

0 commit comments

Comments
 (0)