fix teammember button conditions

This commit is contained in:
Francis Cao committed 2024-02-08 15:17:03 -08:00
1 parent 7c1cb7631d
commit 5e5ab6c7c3
1 file changed
+1 -1
@@ -36,7 +36,7 @@ export function TeamMembersTable({
return ( return (
allowEdit && allowEdit &&
row?.role !== ROLES.teamOwner && row?.role !== ROLES.teamOwner &&
user?.id !== row?.id && ( user?.id !== row?.user?.id && (
<> <>
<TeamMemberEditButton teamId={teamId} userId={row?.user?.id} role={row?.role} /> <TeamMemberEditButton teamId={teamId} userId={row?.user?.id} role={row?.role} />
<TeamMemberRemoveButton <TeamMemberRemoveButton