diff --git a/src/components/modals/GrowFamilyModal.jsx b/src/components/modals/GrowFamilyModal.jsx index 64e3b18f..1ea8fb58 100644 --- a/src/components/modals/GrowFamilyModal.jsx +++ b/src/components/modals/GrowFamilyModal.jsx @@ -71,8 +71,8 @@ export default function GrowFamilyModal({ menuOpen, setMenuOpen, theChild }) { setSubmitDisabled(true); }; const handleClose = () => { - setOpen(false); setMenuOpen(false); + setOpen(false); setInviteRole(''); setShareText(''); }; diff --git a/src/components/modals/LeaveFamilyModal.jsx b/src/components/modals/LeaveFamilyModal.jsx index bece4c68..8b4108be 100644 --- a/src/components/modals/LeaveFamilyModal.jsx +++ b/src/components/modals/LeaveFamilyModal.jsx @@ -44,7 +44,10 @@ export default function LeaveFamilyModal({ menuOpen, setMenuOpen, theChild }) { const [open, setOpen] = useState(false); const handleOpen = () => setOpen(true); - const handleClose = () => setOpen(false); + const handleClose = () => { + setMenuOpen(false); + setOpen(false); + }; const handleLeave = () => { dispatch(leaveFamily(theChild.familyId)); handleClose();