fix: auth state not loaded properly, console cleanup

This commit is contained in:
Jakob Stornig 2023-12-18 18:16:16 +01:00
parent f445504f10
commit 86260d7a24
4 changed files with 25 additions and 41 deletions

View file

@ -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>
)
}