Closed lucianosimoni closed 1 year ago
In the App.js:
const AuthenticateTeacherUser = ({ children, loggedInUser, redirectPath = '/' <------------------------------------------------------------- }) => { if (!isLoggedIn() || loggedInUser.role !== 'TEACHER') { return <Navigate to={redirectPath} replace /> } return <Outlet /> }
It is sending the user to the Login page, which is not cool 🥲. It should send the user to the /posts
/posts
Looks good to me!
In the App.js:
It is sending the user to the Login page, which is not cool 🥲. It should send the user to the
/posts