diff --git a/frontend/src/app/signin/page.tsx b/frontend/src/app/signin/page.tsx index 98cfdc1..19c594a 100644 --- a/frontend/src/app/signin/page.tsx +++ b/frontend/src/app/signin/page.tsx @@ -53,17 +53,13 @@ export default function SignIn() { } else if (response.status === 401) { setIsLoading(false); alert("Invalid password"); - } else if (response.status === 200) { + } else { const data = await response.json(); localStorage.setItem("token", data.token); const decodedToken: any = jwt.decode(data.token); localStorage.setItem("userId", decodedToken.id); localStorage.setItem("name", username); router.push("/chat"); - } else { - setIsLoading(false); - console.log(response.status); - alert(response); } };