Skip to content

Commit

Permalink
Merge pull request Expensify#30084 from bernhardoj/fix/30078
Browse files Browse the repository at this point in the history
Fix crash after deleting a workspace
  • Loading branch information
dangrous authored Oct 20, 2023
2 parents bd6a046 + 03356bd commit feb3e79
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) => _.some(policies, (policy) => policy.id === policyID);
const isPolicyMember = (policyID, policies) => _.some(policies, (policy) => lodashGet(policy, 'id') === policyID);

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

0 comments on commit feb3e79

Please sign in to comment.