From 89ecf84ba173796a160f59251ea1455b87360a58 Mon Sep 17 00:00:00 2001 From: Han <56923450+waddaboo@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:01:38 +0800 Subject: [PATCH 1/2] fix: missing credentials after selecting mult credentials --- .../src/components/new-group-stepper/access-mode-step.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/dashboard/src/components/new-group-stepper/access-mode-step.tsx b/apps/dashboard/src/components/new-group-stepper/access-mode-step.tsx index 8be4d8fd..0e947907 100644 --- a/apps/dashboard/src/components/new-group-stepper/access-mode-step.tsx +++ b/apps/dashboard/src/components/new-group-stepper/access-mode-step.tsx @@ -341,6 +341,14 @@ export default function AccessModeStep({ i.toString() ]) + if (_credentials?.id) { + delete _credentials.id + } + + if (_credentials?.criteria) { + delete _credentials.criteria + } + const tempCredential = { ..._credentials } From 852595ef4ae7fa39e8f2f9851c65dbf9d87ffb57 Mon Sep 17 00:00:00 2001 From: Han <56923450+waddaboo@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:03:06 +0800 Subject: [PATCH 2/2] fix: undefined type check --- apps/dashboard/src/pages/new-group.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/pages/new-group.tsx b/apps/dashboard/src/pages/new-group.tsx index 9f279bb0..7ff55f64 100644 --- a/apps/dashboard/src/pages/new-group.tsx +++ b/apps/dashboard/src/pages/new-group.tsx @@ -28,7 +28,7 @@ export default function NewGroupPage(): JSX.Element { setCurrentStep((v) => v + 1) } - if (group.type === "on-chain" && !next) { + if (group?.type === "on-chain" && !next) { setGroup({ type: "on-chain", fingerprintDuration: 3600 }) } }, [])