Fix found bugs during demo
This commit is contained in:
@@ -15,8 +15,8 @@ export function LandingPage({ currentUser }) {
|
||||
const navigate = useNavigate();
|
||||
|
||||
useEffect(() => {
|
||||
if (!currentUser.authorized) {
|
||||
navigate('/manage/');
|
||||
if (currentUser.authorized) {
|
||||
navigate('/manage/jobs');
|
||||
}
|
||||
}, [currentUser, navigate]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user