From 341cad05005f34e3d0cd8efa4b68174d1aa77565 Mon Sep 17 00:00:00 2001 From: Damilola Belllo Date: Mon, 2 Dec 2024 18:01:48 +0100 Subject: [PATCH] fix(client): disable input when user joins via an invite link 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 --- apps/client/src/pages/home.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/pages/home.tsx b/apps/client/src/pages/home.tsx index 2dadf86b..f253fd9d 100644 --- a/apps/client/src/pages/home.tsx +++ b/apps/client/src/pages/home.tsx @@ -200,6 +200,7 @@ export default function HomePage(): JSX.Element { onChange={(event) => setInviteCode(event.target.value) } + disabled={!!_searchParams.get("credentialGroupId")} /> @@ -213,6 +214,7 @@ export default function HomePage(): JSX.Element { onChange={(event) => setCredentialGroupId(event.target.value) } + disabled={!!_searchParams.get("inviteCode")} />