From b701867d7de4e08627e41d9681ee873d4344e20f Mon Sep 17 00:00:00 2001 From: Jorge Vargas Date: Mon, 10 Feb 2025 23:10:38 -0600 Subject: [PATCH] Refresh after logout --- src/components/header/LogoutButton.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/header/LogoutButton.tsx b/src/components/header/LogoutButton.tsx index 8ad2477..cf78805 100644 --- a/src/components/header/LogoutButton.tsx +++ b/src/components/header/LogoutButton.tsx @@ -3,8 +3,13 @@ import Button from 'components/Button' import { signOut } from 'utils/auth-client' export default function LogoutBtn() { + async function handleClick() { + await signOut() + location.reload() + } + return ( - )