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 } 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 }) } }, [])