From 1deea1112633692daf6b3a559d53a4b19c0e51a7 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 24 Nov 2022 00:15:38 +0100 Subject: [PATCH] fix: not refreshing on logout --- client/pages/Profile.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('/')) }