Issue Summary
When invite signup hits the existing account response, the page shows the login warning but leaves the submit button in a loading and disabled state until the redirect happens
Steps to Reproduce
- Open an invite signup link
- Fill the form with an email that already belongs to an existing Cal.com account
- Submit the form
Actual Results
- The warning is shown
- The submit button stays loading and disabled
- The page redirects to login after a short delay
Expected Results
- The warning should be shown
- The form should not be left in a successful or loading state
- The user should still be able to interact with the page before the redirect
Technical details
- Reproduced locally against the current code in my fork
- Validation command
TZ=UTC yarn test apps/web/modules/signup-view.submit.test.tsx
- Result: 1 test file passed and 1 test passed
Evidence
- Passing repro test case:
locks the form in a loading state after a user already exists response
Issue Summary
When invite signup hits the existing account response, the page shows the login warning but leaves the submit button in a loading and disabled state until the redirect happens
Steps to Reproduce
Actual Results
Expected Results
Technical details
TZ=UTC yarn test apps/web/modules/signup-view.submit.test.tsxEvidence
locks the form in a loading state after a user already exists response