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
This commit is contained in:
@ -97,6 +97,7 @@ export const SignInUpWorkspaceScopeFormEffect = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
signInUpStep !== SignInUpStep.Password &&
|
||||||
signInUpStep !== SignInUpStep.Email &&
|
signInUpStep !== SignInUpStep.Email &&
|
||||||
isDefined(email) &&
|
isDefined(email) &&
|
||||||
workspaceAuthProviders.password &&
|
workspaceAuthProviders.password &&
|
||||||
|
|||||||
Reference in New Issue
Block a user