fix: auth state not loaded properly, console cleanup
This commit is contained in:
parent
f445504f10
commit
86260d7a24
4 changed files with 25 additions and 41 deletions
|
|
@ -6,9 +6,8 @@ import { useAuth } from './contexts/AuthContext'
|
|||
export default function index() {
|
||||
const {authState} = useAuth()
|
||||
|
||||
|
||||
return (
|
||||
<Redirect href={authState?.authenticated ? "/home/" : "/login"}></Redirect>
|
||||
<Redirect href={authState?.authenticated ? "/home/" : "/login"}></Redirect>
|
||||
|
||||
)
|
||||
}
|
||||
Reference in a new issue