Manav Rathi 1 year ago
parent
commit
c9f94f062b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/packages/shared/components/DialogBoxV2/index.tsx

+ 2 - 2
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();
                                 }}