diff --git a/client/app/factory/edit/page.tsx b/client/app/factory/edit/page.tsx index c8e302ae..beef4fcb 100644 --- a/client/app/factory/edit/page.tsx +++ b/client/app/factory/edit/page.tsx @@ -98,7 +98,10 @@ export default function Edit() { }, [language]); useEffect(() => { - if (!user || status !== 'success' || user.id.startsWith('client|')) { + if (status === 'pending') { + return; + } + if (!user || user.id.startsWith('client|')) { router.push(`${apiDomain}/api/auth/login`); } else { if (!user?.agreement_accepted) {