Skip to content

Commit

Permalink
🐛 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nrmnqdds committed Oct 6, 2024
1 parent d049823 commit a9cab5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/ProfileDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export default function ProfileDropdown() {
await fetch("/api/logout", {
method: "DELETE",
});

queryClient.clear();

toast.success("Logged out successfully");

router.replace("/");
}}
>
Log out
Expand Down

0 comments on commit a9cab5a

Please sign in to comment.