Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying committed Sep 25, 2024
1 parent 1c0be8e commit c4538a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/app/factory/edit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export default function Edit() {
const [gitUrl, setGitUrl] = React.useState<string>('');
const apiDomain = process.env.NEXT_PUBLIC_API_DOMAIN;

useEffect(() => {
if (!user || status !== 'success' || user.id.startsWith('client|')) {
router.push(`${apiDomain}/api/auth/login`);
}
}, [user, status]);
// useEffect(() => {
// if (!user || status !== 'success' || user.id.startsWith('client|')) {
// router.push(`${apiDomain}/api/auth/login`);
// }
// }, [user, status]);

const {
updateBot: onUpdateBot,
Expand Down

0 comments on commit c4538a8

Please sign in to comment.