From 8d12ce33ef2385c2ca6a70cb5f9595563921b4f9 Mon Sep 17 00:00:00 2001 From: Steven KKC Date: Mon, 25 Sep 2023 02:48:32 -0400 Subject: [PATCH] fix lint error --- src/pages/home/report/ContextMenu/ContextMenuActions.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.js b/src/pages/home/report/ContextMenu/ContextMenuActions.js index 3a7bfeec684d..8504ee036a0a 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.js +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.js @@ -102,7 +102,13 @@ export default [ shouldShow: (type, reportAction) => { const isAttachment = ReportActionsUtils.isReportActionAttachment(reportAction); const messageHtml = lodashGet(reportAction, ['message', 0, 'html']); - return isAttachment && messageHtml !== CONST.ATTACHMENT_UPLOADING_MESSAGE_HTML && reportAction.reportActionID && !ReportActionsUtils.isMessageDeleted(reportAction) && !NetworkStore.isOffline(); + return ( + isAttachment && + messageHtml !== CONST.ATTACHMENT_UPLOADING_MESSAGE_HTML && + reportAction.reportActionID && + !ReportActionsUtils.isMessageDeleted(reportAction) && + !NetworkStore.isOffline() + ); }, onPress: (closePopover, {reportAction}) => { const message = _.last(lodashGet(reportAction, 'message', [{}]));