Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenKKC committed Sep 25, 2023
1 parent 79c2f61 commit 8d12ce3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', [{}]));
Expand Down

0 comments on commit 8d12ce3

Please sign in to comment.