I have 2 modals that are opened in my react component after I update the date in the component the handleClose function is called and the modal closes. The problem right now is