fix: sidebar selected menu issue

This commit is contained in:
Maël Gangloff
2024-12-28 21:17:13 +01:00
parent ae0fa99870
commit 4bd4d4bd4c
3 changed files with 35 additions and 36 deletions

View File

@@ -59,9 +59,6 @@ export default function App() {
useEffect(() => {
setDarkMode(windowQuery.matches)
}, [])
useEffect(() => {
getUser().then(() => {
setIsAuthenticated(true)
if (location.pathname === '/login') navigate('/home')