The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(): add loader on signup (#12714)
Antoine Moreauxc48b80dfa628
diff --git a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts b/packages/twenty-front/src/modules/auth/hooks/useAuth.tsindex adec1b56bfd..15b2936526f 100644--- a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts+++ b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts@@ -464,7 +464,7 @@ export const useAuth = () => {const handleCredentialsSignUp = useCallback(async (email: string, password: string, captchaToken?: string) => {- signUp({+ return signUp({variables: { email, password, captchaToken },onCompleted: async (data) => {handleSetAuthTokens(data.signUp.tokens);diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsxindex 71debd21c92..23219938e26 100644--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx@@ -260,7 +260,9 @@ export const SignInUpGlobalScopeForm = () => {/>)}<MainButton- disabled={isRequestingCaptchaToken}+ disabled={+ isRequestingCaptchaToken || form.formState.isSubmitting+ }title={signInUpStep === SignInUpStep.Password? signInUpMode === SignInUpMode.SignIn