From c88893460168f625d785a99f2eeb6d1799a36777 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Mon, 13 Mar 2023 16:28:04 +0000 Subject: [PATCH] fix: show progress as of sign-up in SignUpForm --- packages/web/src/components/SignUpForm/index.ee.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/src/components/SignUpForm/index.ee.tsx b/packages/web/src/components/SignUpForm/index.ee.tsx index 71070fcf..a9ef86ee 100644 --- a/packages/web/src/components/SignUpForm/index.ee.tsx +++ b/packages/web/src/components/SignUpForm/index.ee.tsx @@ -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" >