fix: show progress as of sign-up in SignUpForm

This commit is contained in:
Ali BARIN
2023-03-13 16:28:04 +00:00
parent 95613b595e
commit c888934601

View File

@@ -40,8 +40,8 @@ function SignUpForm() {
const navigate = useNavigate();
const authentication = useAuthentication();
const formatMessage = useFormatMessage();
const [createUser] = useMutation(CREATE_USER);
const [login, { loading }] = useMutation(LOGIN);
const [createUser, { loading: createUserLoading }] = useMutation(CREATE_USER);
const [login, { loading: loginLoading }] = useMutation(LOGIN);
React.useEffect(() => {
if (authentication.isAuthenticated) {
@@ -165,7 +165,7 @@ function SignUpForm() {
variant="contained"
color="primary"
sx={{ boxShadow: 2, mt: 3 }}
loading={loading}
loading={createUserLoading || loginLoading}
fullWidth
data-test="signUp-button"
>