fixing routing on logout
This commit is contained in:
@@ -83,7 +83,7 @@ export function AuthProvider({ children }) {
|
|||||||
|
|
||||||
Promise.resolve(await signOut(auth));
|
Promise.resolve(await signOut(auth));
|
||||||
|
|
||||||
router.push("/teams/landing");
|
router.push("/");
|
||||||
};
|
};
|
||||||
|
|
||||||
const value = {
|
const value = {
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export function TeamDashboardContextProvider({ children }) {
|
|||||||
setValue((prevValue) => ({ ...prevValue, teamMembers }));
|
setValue((prevValue) => ({ ...prevValue, teamMembers }));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
router.push("/teams/landing");
|
router.push("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user