fix: redirect to home page on sign out

This commit is contained in:
DanielS
2026-06-24 01:40:17 +02:00
parent 4a17ea378e
commit 934879e5cf
2 changed files with 3 additions and 2 deletions

View File

@@ -87,8 +87,8 @@ export function NavbarClient({ user, role = "partner" }: NavbarClientProps) {
await supabase.auth.signOut();
setCurrentUser(null);
setIsMobileMenuOpen(false);
router.refresh();
router.push("/");
router.refresh();
};
return (