Skip to content

Invite signup stays in a loading state after the existing account warning #28854

@Monti-27

Description

@Monti-27

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

  1. Open an invite signup link
  2. Fill the form with an email that already belongs to an existing Cal.com account
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions