Skip to content

Commit

Permalink
fix(client): disable input when user joins via an invite link
Browse files Browse the repository at this point in the history
Disable `credential group id` input when user joins a group via an invite link with an inviteCode.
Also, disable `invite code` input when user joins a group via an invite link with a
credentialGroupId

#270
  • Loading branch information
bellodamilola committed Dec 2, 2024
1 parent 1b47a32 commit 341cad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/client/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export default function HomePage(): JSX.Element {
onChange={(event) =>
setInviteCode(event.target.value)
}
disabled={!!_searchParams.get("credentialGroupId")}
/>
</VStack>

Expand All @@ -213,6 +214,7 @@ export default function HomePage(): JSX.Element {
onChange={(event) =>
setCredentialGroupId(event.target.value)
}
disabled={!!_searchParams.get("inviteCode")}
/>
</VStack>

Expand Down

0 comments on commit 341cad0

Please sign in to comment.