diff --git a/web/packages/shared/components/DialogBoxV2/index.tsx b/web/packages/shared/components/DialogBoxV2/index.tsx index 9b50360f30..3f318594ee 100644 --- a/web/packages/shared/components/DialogBoxV2/index.tsx +++ b/web/packages/shared/components/DialogBoxV2/index.tsx @@ -96,7 +96,7 @@ export default function DialogBoxV2({ size="large" color={attributes.proceed?.variant} onClick={async () => { - await attributes.proceed.action(setLoading); + await attributes.proceed?.action(setLoading); onClose(); }} @@ -110,7 +110,7 @@ export default function DialogBoxV2({ size="large" color={attributes.close?.variant ?? "secondary"} onClick={() => { - attributes.close.action && + attributes.close?.action && attributes.close?.action(); onClose(); }}