From 3e5ece49937337c2f5511a9ff506c3acb1aefe40 Mon Sep 17 00:00:00 2001 From: s-alves10 Date: Fri, 15 Sep 2023 00:47:26 -0500 Subject: [PATCH] fix: empty checking of report --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index f24959c4bac2..0e2d298a3265 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -2821,7 +2821,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas, } const lastVisibleMessage = ReportActionsUtils.getLastVisibleMessage(report.reportID); - const isEmptyChat = !lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey; + const isEmptyChat = !report.lastMessageText && !report.lastMessageTranslationKey && !lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey; // Hide only chat threads that haven't been commented on (other threads are actionable) if (isChatThread(report) && isEmptyChat) {