From 54edcc0ea7d3be57a4d59f218e83e7c31ac30c99 Mon Sep 17 00:00:00 2001 From: Antoine Moreaux Date: Fri, 23 May 2025 17:50:03 +0200 Subject: [PATCH] fix(auth): prevent unexpected form effect trigger (#12261) Ensure the form effect is not erroneously triggered when the sign-in step is not related to email or password. This resolves potential state inconsistencies during the authentication flow. Fix #12176 --- .../sign-in-up/components/SignInUpWorkspaceScopeFormEffect.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeFormEffect.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeFormEffect.tsx index 6242082ba..6d5e2f646 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeFormEffect.tsx +++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeFormEffect.tsx @@ -97,6 +97,7 @@ export const SignInUpWorkspaceScopeFormEffect = () => { } if ( + signInUpStep !== SignInUpStep.Password && signInUpStep !== SignInUpStep.Email && isDefined(email) && workspaceAuthProviders.password &&