mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: project invite modal members filter function (#2080)
This commit is contained in:
parent
f554ad95e9
commit
5e02ad8104
@ -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>
|
||||
),
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user