router refresh on logout

This commit is contained in:
Milo Schwartz 2025-01-11 15:10:02 -05:00
parent 82192fa180
commit a2bf3ba7e7
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@ export default async function AuthLayout({ children }: AuthLayoutProps) {
<>
{user && (
<UserProvider user={user}>
<div>
<div className="p-3">
<ProfileIcon />
</div>
</UserProvider>

View file

@ -57,6 +57,7 @@ export default function ProfileIcon() {
})
.then(() => {
router.push("/auth/login");
router.refresh();
});
}