diff --git a/client/pages/Profile.tsx b/client/pages/Profile.tsx index 4a95e0f..e76ead5 100644 --- a/client/pages/Profile.tsx +++ b/client/pages/Profile.tsx @@ -26,8 +26,8 @@ export const ProfilePage = ({}) => { } }) - const handleLogout = () => { - logout() + const handleLogout = async () => { + await logout() route(prependBaseUrl('/')) }