Skip to content

Commit

Permalink
fix: project invite modal members filter function (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 authored Sep 4, 2023
1 parent f554ad9 commit 5e02ad8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/components/project/send-project-invitation-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down Expand Up @@ -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>
),
}));
Expand Down

2 comments on commit 5e02ad8

@vercel
Copy link

@vercel vercel bot commented on 5e02ad8 Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane-sh-dev – ./space/

plane-space-dev.vercel.app
plane-sh-dev-git-develop-plane.vercel.app
plane-sh-dev-plane.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5e02ad8 Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane-dev – ./web/

plane-dev-git-develop-plane.vercel.app
plane-dev-plane.vercel.app
plane-dev.vercel.app

Please sign in to comment.