From c6bc9e9a64ebe35cd6cae753a520c159bb554a81 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Tue, 13 Aug 2024 13:20:56 +0800 Subject: [PATCH] Fixed sign out error --- client/src/components/NavigationBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/NavigationBar.tsx b/client/src/components/NavigationBar.tsx index 902cdf4..41b1bfc 100644 --- a/client/src/components/NavigationBar.tsx +++ b/client/src/components/NavigationBar.tsx @@ -172,7 +172,7 @@ export default function NavigationBar() { title="Sign out" onPress={() => { localStorage.clear(); - window.location.reload(); + window.location.href = "/"; }} />