Skip to content

Commit

Permalink
Merge branch 'jasper-uiForRoomInvitations/Removals' of github.com:Exp…
Browse files Browse the repository at this point in the history
…ensify/App into jasper-uiForRoomInvitations/Removals
  • Loading branch information
jasperhuangg committed Oct 17, 2023
2 parents cced4f4 + d94ed73 commit 25a7f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/PolicyUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const isPolicyAdmin = (policy) => lodashGet(policy, 'role') === CONST.POLICY.ROL
* @param {Object} policies
* @returns {Boolean}
*/
const isPolicyMember = (policyID, policies) => _.reduce(policies, (isMember, policy) => isMember || policy.id === policyID, false);
const isPolicyMember = (policyID, policies) => _.some(policies, (policy) => policy.id === policyID);

/**
* @param {Object} policyMembers
Expand Down

0 comments on commit 25a7f46

Please sign in to comment.