From 102154717acb6e3e7b9bba0c8e254c01c2da259c Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Wed, 20 Dec 2023 22:52:03 +0700 Subject: [PATCH] use isIOUAction variable --- src/pages/home/report/ContextMenu/ContextMenuActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.js b/src/pages/home/report/ContextMenu/ContextMenuActions.js index 1f82e71ef5f1..2e51ef714562 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.js +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.js @@ -148,7 +148,7 @@ export default [ const isTaskAction = ReportActionsUtils.isTaskAction(reportAction); const isWhisperAction = ReportActionsUtils.isWhisperAction(reportAction); return ( - (!isWhisperAction || reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.IOU || isReportPreviewAction) && + (!isWhisperAction || isIOUAction || isReportPreviewAction) && (isCommentAction || isReportPreviewAction || isIOUAction || isModifiedExpenseAction || isTaskAction) && !ReportUtils.isThreadFirstChat(reportAction, reportID) );