Skip to content

Commit

Permalink
Correct if check so that we do not auto-fill previous new member.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocielliottc committed Dec 20, 2024
1 parent 7712618 commit 2eb13fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-ui/src/components/member-directory/MemberModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2eb13fb

Please sign in to comment.