Skip to content

Commit

Permalink
correct cancel modal behaviour. (#3838)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinleighsmith committed Mar 5, 2024
1 parent dd85ab4 commit b4e4a59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ const AddSubdivisionContainer: React.FC<IAddSubdivisionContainerProps> = ({ onCl
setDisplayModal(false);
},
});
setDisplayModal(true);
} else {
onClose?.();
}
setDisplayModal(true);
}, [onClose, setDisplayModal, setModalContent]);

const initialForm = useMemo(() => {
Expand Down

0 comments on commit b4e4a59

Please sign in to comment.