This commit is contained in:
Manav Rathi 2024-05-25 10:04:54 +05:30
parent c8205b8475
commit c9f94f062b
No known key found for this signature in database

View file

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