Skip to content

Commit 93b4743

Browse files
committed
fix: accidentally logout when clicking NavUser
1 parent 09e5f70 commit 93b4743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/nav-user.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function NavUser({
8585
</Link>
8686
</DropdownMenuGroup>
8787
<DropdownMenuSeparator />
88-
<Link href="/api/auth/logout">
88+
<Link href="/api/auth/logout" prefetch={false}>
8989
<DropdownMenuItem>
9090
<LogOut />
9191
登出

0 commit comments

Comments
 (0)