From 3b58e09b023c51b1c64dbd86234858e0d36b3389 Mon Sep 17 00:00:00 2001 From: tienifr <christianwen18@gmail.com> Date: Tue, 26 Sep 2023 17:10:04 +0700 Subject: [PATCH] fix: 27862 Web - Deleting a manual request in the IOU room that still has a scan request redirects the user to the main chat --- src/libs/ReportActionsUtils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/ReportActionsUtils.js b/src/libs/ReportActionsUtils.js index 67c44784eeb2..feb9ca92840a 100644 --- a/src/libs/ReportActionsUtils.js +++ b/src/libs/ReportActionsUtils.js @@ -384,7 +384,9 @@ function shouldReportActionBeVisibleAsLastAction(reportAction) { // If a whisper action is the REPORTPREVIEW action, we are displaying it. return ( - shouldReportActionBeVisible(reportAction, reportAction.reportActionID) && !(isWhisperAction(reportAction) && !isReportPreviewAction(reportAction)) && !isDeletedAction(reportAction) + shouldReportActionBeVisible(reportAction, reportAction.reportActionID) && + !(isWhisperAction(reportAction) && !isReportPreviewAction(reportAction) && !isMoneyRequestAction(reportAction)) && + !isDeletedAction(reportAction) ); }