fixing routing on logout

This commit is contained in:
Arjun Patel
2022-01-26 12:34:10 -08:00
parent 9f0ca494ea
commit 49326079f9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export function AuthProvider({ children }) {
Promise.resolve(await signOut(auth));
router.push("/teams/landing");
router.push("/");
};
const value = {
+1 -1
View File
@@ -208,7 +208,7 @@ export function TeamDashboardContextProvider({ children }) {
setValue((prevValue) => ({ ...prevValue, teamMembers }));
} catch (error) {
console.log(error);
router.push("/teams/landing");
router.push("/");
}
setLoading(false);