diff --git a/frontend/src/pages/signup.tsx b/frontend/src/pages/signup.tsx index 298fc9536..1f1099c7b 100644 --- a/frontend/src/pages/signup.tsx +++ b/frontend/src/pages/signup.tsx @@ -71,11 +71,17 @@ export default function SignUp() { } }; - // when email service is not configured, skip step 2 + // when email service is not configured, skip step 2 and 5 useEffect(() => { if (!serverDetails?.emailConfigured && step === 2){ incrementStep() } + + if (!serverDetails?.emailConfigured && step === 5){ + getWorkspaces().then((userWorkspaces)=>{ + router.push(`/dashboard/${userWorkspaces[0]._id}`); + }); + } }, [step]); return ( @@ -121,9 +127,7 @@ export default function SignUp() { password={password} name={`${firstName} ${lastName}`} /> - ) : ( - - )} + ) : (serverDetails?.emailConfigured ? : "")}