The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix login by email blocked
Charles Bochet27cd577dbb28
diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpForm.tsxindex c4b690e41bd..a5823db4393 100644--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpForm.tsx+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpForm.tsx@@ -127,7 +127,7 @@ export const SignInUpForm = () => {const isEmailStepSubmitButtonDisabledCondition =signInUpStep === SignInUpStep.Email &&- (form.watch('email').length === 0 || shouldWaitForCaptchaToken);+ (form.watch('email')?.length === 0 || shouldWaitForCaptchaToken);// TODO: isValid is actually a proxy function. If it is not rendered the first time, react might not trigger re-renders// We make the isValid check synchronous and update a reactState to make sure this does not happen