fix: login redirect

This commit is contained in:
Maël Gangloff
2024-08-02 16:17:55 +02:00
parent a6d56a303b
commit e15c2e1a17
4 changed files with 18 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ export default function App() {
useEffect(() => {
getUser().then(() => {
setIsAuthenticated(true)
if (location.pathname === '/login') navigate('/search/domain')
if (location.pathname === '/login') navigate('/home')
}).catch(() => {
setIsAuthenticated(false)
navigate('/home')