Skip to content

Commit

Permalink
Merge pull request Expensify#47340 from ishpaul777/fix/unaccessible-c…
Browse files Browse the repository at this point in the history
…hat-stuck-in-LHN

Fix/unaccessible chat stuck in lhn
  • Loading branch information
aldo-expensify authored Aug 13, 2024
2 parents 0964ee9 + f4f5368 commit c1b2fce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ function getOrderedReportIDs(
doesTransactionThreadReportHasViolations ||
doesReportHaveViolations ||
Object.values(allReportErrors).some((error) => error?.[0] !== Localize.translateLocal('iou.error.genericSmartscanFailureMessage'));
const isReportInAccessible = report?.errorFields?.notFound;
if (ReportUtils.isOneTransactionThread(report.reportID, report.parentReportID ?? '0', parentReportAction)) {
return;
}
if (hasErrorsOtherThanFailedReceipt) {
if (hasErrorsOtherThanFailedReceipt && !isReportInAccessible) {
reportsToDisplay.push({
...report,
hasErrorsOtherThanFailedReceipt: true,
Expand Down

0 comments on commit c1b2fce

Please sign in to comment.