Skip to content

Commit

Permalink
fix to use find
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Jun 16, 2023
1 parent 4fa599c commit 2bbea93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const getComplianceRule = (
return undefined;
}

const ruleObject = rule.some((object) => {
const ruleObject = rule.find((object) => {
if (object.approved.includes(nodeInfo.value) || object.rejected.includes(nodeInfo.value)) {
return object;
}
Expand Down

0 comments on commit 2bbea93

Please sign in to comment.