diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index c5439d687089..5a6e31a56e58 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -93,9 +93,9 @@ function getOrderedReportIDs( ); const isHidden = report.notificationPreference === CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN; const isFocused = report.reportID === currentReportId; - const hasErrors = Object.keys(OptionsListUtils.getAllReportErrors(report, reportActions) ?? {}).length !== 0; - const hasBrickError = hasErrors || doesReportHaveViolations ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''; - const shouldOverrideHidden = hasBrickError || isFocused || report.isPinned; + const allReportErrors = OptionsListUtils.getAllReportErrors(report, reportActions) ?? {}; + const hasErrorsOtherThanFailedReceipt = doesReportHaveViolations || Object.values(allReportErrors).some((error) => error?.[0] !== 'report.genericSmartscanFailureMessage'); + const shouldOverrideHidden = hasErrorsOtherThanFailedReceipt || isFocused || report.isPinned; if (isHidden && !shouldOverrideHidden) { return false; }