Skip to content

Commit

Permalink
fix: bring back login-check on home
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisostome01 committed Jun 7, 2024
1 parent c45f62f commit c280fc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions views/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const Home = () => {
const navigate = useNavigate()

useLayoutEffect(() => {
console.log({ user })
// if (user) return navigate("/dashboard")
if (user) return navigate("/dashboard")
}, [user])

return null
Expand Down

0 comments on commit c280fc2

Please sign in to comment.