diff --git a/src/app/components/ConfirmAlert.jsx b/src/app/components/ConfirmAlert.jsx index da40b7bb..8f804276 100644 --- a/src/app/components/ConfirmAlert.jsx +++ b/src/app/components/ConfirmAlert.jsx @@ -12,7 +12,7 @@ import PropTypes from 'prop-types'; const emptyCallback = () => {}; const defaultProps = { onOpen: emptyCallback, - onClose: emptyCallback, + onClose: null, isOpen: false, setIsOpen: emptyCallback, cancelText: 'Cancel', @@ -46,7 +46,7 @@ const ConfirmAlert = ({ { - onClose(); + onClose && onClose(); setIsOpen(false); }} aria-labelledby={titleTestId} @@ -63,7 +63,7 @@ const ConfirmAlert = ({ ) : <>} - + }