diff --git a/src/context/AuthContext.jsx b/src/context/AuthContext.jsx index 64b7f1e..270f190 100644 --- a/src/context/AuthContext.jsx +++ b/src/context/AuthContext.jsx @@ -233,8 +233,8 @@ export const AuthProvider = ({ children }) => { } }; - window.addEventListener("storage", e => handleStorageChange(e)); - return () => window.removeEventListener("storage", e => handleStorageChange(e)); + window.addEventListener("storage", handleStorageChange); + return () => window.removeEventListener("storage", handleStorageChange); }, []); const login = async (requestRepoScope = true) => {