fix(): add loader on signup (#12714)

Fix #12713
This commit is contained in:
Antoine Moreaux
2025-06-19 16:07:10 +02:00
committed by GitHub
parent bb3008e12b
commit c48b80dfa6
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -260,7 +260,9 @@ export const SignInUpGlobalScopeForm = () => {
/>
)}
<MainButton
disabled={isRequestingCaptchaToken}
disabled={
isRequestingCaptchaToken || form.formState.isSubmitting
}
title={
signInUpStep === SignInUpStep.Password
? signInUpMode === SignInUpMode.SignIn