fix: project invite modal members filter function (#2080)

This commit is contained in:
Aaryan Khandelwal 2023-09-04 16:35:28 +05:30 committed by GitHub
parent f554ad95e9
commit 5e02ad8104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,8 @@ const SendProjectInvitationModal: React.FC<Props> = (props) => {
});
const uninvitedPeople = people?.filter((person) => {
const isInvited = members?.find((member) => member.display_name === person.member.display_name);
const isInvited = members?.find((member) => member.memberId === person.member.id);
return !isInvited;
});
@ -143,7 +144,7 @@ const SendProjectInvitationModal: React.FC<Props> = (props) => {
content: (
<div className="flex items-center gap-2">
<Avatar user={person.member} />
{person.member.display_name}
{person.member.display_name} ({person.member.first_name + " " + person.member.last_name})
</div>
),
}));