From 6f8509f16f4796a7f32181371546f7baba9448ff Mon Sep 17 00:00:00 2001 From: Rishabhjain610 <178924821+Rishabhjain610@users.noreply.github.com> Date: Tue, 23 Jun 2026 04:15:00 +0530 Subject: [PATCH] Update authAPI.js --- Frontend/src/services/operations/authAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/src/services/operations/authAPI.js b/Frontend/src/services/operations/authAPI.js index cff41fd..67b9f39 100644 --- a/Frontend/src/services/operations/authAPI.js +++ b/Frontend/src/services/operations/authAPI.js @@ -171,7 +171,7 @@ export function logout(navigate) { localStorage.removeItem("token"); localStorage.removeItem("user"); navigate("/"); - } catch (e) { + } catch (error) { console.error("Login Error:", error); customToast.error(error.response?.data?.message || "Login failed"); } finally {