Skip to content

Commit

Permalink
Merge pull request #46853 from nkdengineer/fix/46789
Browse files Browse the repository at this point in the history
  • Loading branch information
cead22 authored Aug 7, 2024
2 parents ed6f5c1 + f6ad949 commit 8d65d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Violations/ViolationsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function getTagViolationForIndependentTags(policyTagList: PolicyTagList, transac
const selectedTag = selectedTags[i];
const tags = policyTagList[policyTagKeys[i]].tags;
const isTagInPolicy = Object.values(tags).some((tag) => tag.name === selectedTag && !!tag.enabled);
if (!isTagInPolicy) {
if (!isTagInPolicy && selectedTag) {
newTransactionViolations.push({
name: CONST.VIOLATIONS.TAG_OUT_OF_POLICY,
type: CONST.VIOLATION_TYPES.VIOLATION,
Expand Down

0 comments on commit 8d65d3a

Please sign in to comment.