Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
chore: use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Nov 13, 2023
1 parent 1306c16 commit bfc3ee5
Show file tree
Hide file tree
Showing 2 changed files with 1,474 additions and 2,513 deletions.
4 changes: 2 additions & 2 deletions src/components/SignUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ const SignUp = () => {
helperText={nameError}
onChange={handleNameOnChange}
id={NAME_SIGN_UP_FIELD_ID}
disabled={Boolean(invitation.name)}
disabled={Boolean(invitation?.name)}
/>
<EmailInput
value={email}
setValue={setEmail}
id={EMAIL_SIGN_UP_FIELD_ID}
disabled={Boolean(invitation.email)}
disabled={Boolean(invitation?.email)}
shouldValidate={shouldValidate}
/>
<Button onClick={handleRegister} id={SIGN_UP_BUTTON_ID} fullWidth>
Expand Down
Loading

0 comments on commit bfc3ee5

Please sign in to comment.