Propagate success flag.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-31 20:13:39 -03:00
parent e6e3bc2655
commit 819428651e

View File

@ -27,8 +27,8 @@ type ActionDialogProps = {
};
const ActionDispatcher = ({ mapsId, action, onClose, fromEditor }: ActionDialogProps): React.ReactElement => {
const handleOnClose = (): void => {
onClose();
const handleOnClose = (success?: boolean): void => {
onClose(success);
};
switch (action) {