diff --git a/web-ui/src/components/member-directory/MemberModal.jsx b/web-ui/src/components/member-directory/MemberModal.jsx index ef737139da..4ece8bac36 100644 --- a/web-ui/src/components/member-directory/MemberModal.jsx +++ b/web-ui/src/components/member-directory/MemberModal.jsx @@ -144,7 +144,7 @@ const MemberModal = ({ member, open, onSave, onClose }) => { }); } else if (required && inputsFeasible) { onSave(editedMember).then(() => { - if (isNewMember.current) { + if (isNewMember) { setMember({ emptyMember }); setIsNewMember(true); }