diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 8b3a0cacffca..19811e05f9d6 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -2242,9 +2242,19 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, iouRep return true; } - // Include reports if they have a draft, are pinned, or have an outstanding IOU + // Include reports if they have a draft or have an outstanding IOU // These are always relevant to the user no matter what view mode the user prefers - if (report.hasDraft || report.isPinned || isWaitingForIOUActionFromCurrentUser(report, iouReports)) { + if (report.hasDraft || isWaitingForIOUActionFromCurrentUser(report, iouReports)) { + return true; + } + + // Hide only chat threads that haven't been commented on (other threads are actionable) + if (isChatThread(report) && !report.lastMessageText) { + return false; + } + + // Include reports if they are pinned + if (report.isPinned) { return true; } @@ -2269,11 +2279,6 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, iouRep return false; } - // Hide only chat threads that haven't been commented on (other threads are actionable) - if (isChatThread(report) && !report.lastMessageText) { - return false; - } - return true; }