fix: Clean up user on sign up page when logged in

This commit is contained in:
Myzel394 2023-02-12 16:27:26 +01:00
parent 9a24e6b3e4
commit 30ccdbce13

View File

@ -35,6 +35,7 @@ export default function AuthContextProvider({children}: AuthContextProviderProps
user as User,
)
const logout = useCallback(() => {
localStorage.removeItem("signup-form-state-email")
logoutMasterPassword()
setUser(null)
}, [logoutMasterPassword])