diff --git a/src/pages/error/index.tsx b/src/pages/error/index.tsx index f87f2599..c1af55a7 100644 --- a/src/pages/error/index.tsx +++ b/src/pages/error/index.tsx @@ -22,7 +22,7 @@ const Error = ({ user, theme }: any) => { }; useEffect(() => { - if (user) { + if (user && user.username) { history.push('/crontab'); } }, [user]);