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