Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
Co-authored-by: Aimane Chnaif <[email protected]>
  • Loading branch information
burczu and aimane-chnaif authored Mar 1, 2024
1 parent 0060083 commit 1ad8d37
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 @@ -417,7 +417,7 @@ function WorkspaceMembersPage({policyMembers, personalDetails, route, policy, se
});
}

if (selectedEmployees.find((employee) => policyMembers?.[employee].role === CONST.POLICY.ROLE.USER)) {
if (selectedEmployees.find((employee) => policyMembers?.[employee]?.role === CONST.POLICY.ROLE.USER)) {
options.push({
text: translate('workspace.people.makeAdmin'),
value: CONST.POLICY.MEMBERS_BULK_ACTION_TYPES.MAKE_ADMIN,
Expand Down

0 comments on commit 1ad8d37

Please sign in to comment.