Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 7, 2025
1 parent 8e69675 commit 96157cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/TransactionUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,9 @@ function shouldShowBrokenConnectionViolation(
): boolean {
const transactionsWithBrokenConnectionViolation = transactionIDList?.map((transactionID) => hasBrokenConnectionViolation(transactionID, allViolations)) ?? [];
return (
(transactionsWithBrokenConnectionViolation.length > 0 && transactionsWithBrokenConnectionViolation?.some((value) => value === true) && !PolicyUtils.isPolicyAdmin(policy)) ||
ReportUtils.isOpenExpenseReport(report) ||
(ReportUtils.isProcessingReport(report) && PolicyUtils.isInstantSubmitEnabled(policy))
transactionsWithBrokenConnectionViolation.length > 0 &&
transactionsWithBrokenConnectionViolation?.some((value) => value === true) &&
(!PolicyUtils.isPolicyAdmin(policy) || ReportUtils.isOpenExpenseReport(report) || (ReportUtils.isProcessingReport(report) && PolicyUtils.isInstantSubmitEnabled(policy)))
);
}

Expand Down

0 comments on commit 96157cb

Please sign in to comment.