Skip to content

Commit 3570c41

Browse files
authored
Merge pull request Expensify#61709 from Krishna2323/krishna2323/issue/60811
fix: Invoice - Workspace chat has RBR in LHN after sending invoice without category.
2 parents cfa3ffc + 627ba6e commit 3570c41

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7661,9 +7661,10 @@ function shouldDisplayViolationsRBRInLHN(report: OnyxEntry<Report>, transactionV
76617661
const potentialReports = reportsByPolicyID[report.policyID] ?? [];
76627662
return potentialReports.some((potentialReport) => {
76637663
return (
7664-
hasViolations(potentialReport.reportID, transactionViolations, true) ||
7665-
hasWarningTypeViolations(potentialReport.reportID, transactionViolations, true) ||
7666-
hasNoticeTypeViolations(potentialReport.reportID, transactionViolations, true)
7664+
!isInvoiceReport(potentialReport) &&
7665+
(hasViolations(potentialReport.reportID, transactionViolations, true) ||
7666+
hasWarningTypeViolations(potentialReport.reportID, transactionViolations, true) ||
7667+
hasNoticeTypeViolations(potentialReport.reportID, transactionViolations, true))
76677668
);
76687669
});
76697670
}

0 commit comments

Comments
 (0)