commit | 3f5f3e7664a570e60acdc6e72886abac1513b588 | [log] [tgz] |
---|---|---|
author | simon <tran.simon2@gmail.com> | Tue Nov 08 21:01:57 2022 -0500 |
committer | Simon Tran <tran.simon2@gmail.com> | Thu Nov 10 12:31:28 2022 -0500 |
tree | 8d68c40809257c82414cdd5327778df2a052a7ef | |
parent | ab4eec83f67912757dbf2bb08d7afdb57e5ccdda [diff] [blame] |
Improve client routing Change-Id: I15f93ddbb21cee0ba868e163723b136d9e8c665f
diff --git a/client/src/contexts/AuthProvider.tsx b/client/src/contexts/AuthProvider.tsx index 3bac10d..ac829dd 100644 --- a/client/src/contexts/AuthProvider.tsx +++ b/client/src/contexts/AuthProvider.tsx
@@ -39,7 +39,7 @@ const logout = useCallback(() => { localStorage.removeItem('accessToken'); - navigate('/'); + navigate('/login'); }, [navigate]); useEffect(() => {