修复错误界面user判断

This commit is contained in:
whyour
2022-05-22 21:28:30 +08:00
parent c9bd27ec4f
commit 89ddfd20cd
+1 -1
View File
@@ -22,7 +22,7 @@ const Error = ({ user, theme }: any) => {
};
useEffect(() => {
if (user) {
if (user && user.username) {
history.push('/crontab');
}
}, [user]);