fix: member role project leave

This commit is contained in:
LAKHAN BAHETI 2023-12-12 17:00:59 +05:30
parent 90de11c08d
commit c7d50bb7ce

View File

@ -168,7 +168,7 @@ export const ProjectMemberListItem: React.FC<Props> = observer((props) => {
);
})}
</CustomSelect>
{isAdmin && (
{(isAdmin || memberDetails.id === currentProjectMemberInfo?.member.id) && (
<Tooltip
tooltipContent={
memberDetails.id === currentProjectMemberInfo?.member.id ? "Leave project" : "Remove member"