fixing routing on logout
This commit is contained in:
@@ -83,7 +83,7 @@ export function AuthProvider({ children }) {
|
||||
|
||||
Promise.resolve(await signOut(auth));
|
||||
|
||||
router.push("/teams/landing");
|
||||
router.push("/");
|
||||
};
|
||||
|
||||
const value = {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user