Skip to content

Commit

Permalink
fix: Link prefetch causing logout
Browse files Browse the repository at this point in the history
  • Loading branch information
JusJira committed Oct 24, 2023
1 parent a4dd375 commit 7d5f1da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/account/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default async function account() {
</div>
{user ? (
<div className="flex h-full min-h-full flex-col items-center justify-center gap-3 rounded-md bg-white p-3 dark:bg-neutral-900">
<div>Version {process.env.VERSION}</div>
<div className="flex w-full justify-center">
<DarkModeToggle />
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/signOutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function SignOutButton() {
// >
// Sign Out
// </Button>
<Link className={`${buttonVariants({ variant: "outline" })} w-2/3 lg:w-48 !border-black`} href="/api/auth/logout">
<Link className={`${buttonVariants({ variant: "outline" })} w-2/3 lg:w-48 !border-black`} href="/api/auth/logout" prefetch={false}>
Sign Out
</Link>
);
Expand Down

0 comments on commit 7d5f1da

Please sign in to comment.