Skip to content

Commit

Permalink
fix admin badge
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Mar 5, 2024
1 parent 21f1180 commit bf9cc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function WorkspaceMembersPage({policyMembers, personalDetails, route, policy, se
const isSelected = selectedEmployees.includes(accountID);

const isOwner = policy?.owner === details.login;
const isAdmin = session?.email === details.login || policyMember.role === CONST.POLICY.ROLE.ADMIN;
const isAdmin = policyMember.role === CONST.POLICY.ROLE.ADMIN;

let roleBadge = null;
if (isOwner || isAdmin) {
Expand Down

0 comments on commit bf9cc2f

Please sign in to comment.