From cf0ec8bd64f2a0292b9a667fd0c0b99cdc5e7611 Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Sat, 17 May 2025 10:02:35 +0000 Subject: [PATCH] ```update Change logout behavior back to route navigation after sign-out instead of full page reload ``` --- 002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx b/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx index 71cd65c..e14dda0 100644 --- a/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx +++ b/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx @@ -58,8 +58,7 @@ function StudentInfo(): React.JSX.Element { async function handleLogoutOnClick() { try { await authClient.signOut(); - // router.push(Paths.AuthLogin); - window.location.reload(); + router.push(Paths.AuthLogin); } catch (error) { console.error(error); }