Skip to content

Commit

Permalink
[Fix] Disable logout prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
AliasBretaud committed Oct 21, 2024
1 parent 7164bac commit 178537e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/navigation/ProfileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const ProfileButton = ({ user }: { user?: UserProfile }) => {
<Typography>{user?.name || undefined}</Typography>
</Container>
<Divider />
<Link href="/api/auth/logout">
<Link href="/api/auth/logout" prefetch={false}>
<MenuItem onClick={handleClose}>
<Stack direction="row" alignItems="center" justifyContent="center">
<ListItemIcon>
Expand Down

0 comments on commit 178537e

Please sign in to comment.