|
@@ -96,7 +96,7 @@ export default function DialogBoxV2({
|
|
size="large"
|
|
size="large"
|
|
color={attributes.proceed?.variant}
|
|
color={attributes.proceed?.variant}
|
|
onClick={async () => {
|
|
onClick={async () => {
|
|
- await attributes.proceed.action(setLoading);
|
|
|
|
|
|
+ await attributes.proceed?.action(setLoading);
|
|
|
|
|
|
onClose();
|
|
onClose();
|
|
}}
|
|
}}
|
|
@@ -110,7 +110,7 @@ export default function DialogBoxV2({
|
|
size="large"
|
|
size="large"
|
|
color={attributes.close?.variant ?? "secondary"}
|
|
color={attributes.close?.variant ?? "secondary"}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
- attributes.close.action &&
|
|
|
|
|
|
+ attributes.close?.action &&
|
|
attributes.close?.action();
|
|
attributes.close?.action();
|
|
onClose();
|
|
onClose();
|
|
}}
|
|
}}
|