Skip to content

Commit 39b57bd

Browse files
authored
Merge pull request Expensify#67082 from mkzie2/mkzie2-issue/66197
fix: edit expense context menu action does not show for workspace expenses and DM IOU
2 parents e0bf4b3 + 33ca5d7 commit 39b57bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/pages/home/report/ContextMenu/ContextMenuActions.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,10 @@ const ContextMenuActions: ContextMenuAction[] = [
333333
isAnonymousAction: false,
334334
textTranslateKey: 'reportActionContextMenu.editAction',
335335
icon: Expensicons.Pencil,
336-
shouldShow: ({type, reportAction, isArchivedRoom, isChronosReport}) =>
337-
type === CONST.CONTEXT_MENU_TYPES.REPORT_ACTION && canEditReportAction(reportAction) && !isArchivedRoom && !isChronosReport,
338-
onPress: (closePopover, {reportID, reportAction, draftMessage}) => {
339-
if (isMoneyRequestAction(reportAction)) {
336+
shouldShow: ({type, reportAction, isArchivedRoom, isChronosReport, moneyRequestAction}) =>
337+
type === CONST.CONTEXT_MENU_TYPES.REPORT_ACTION && (canEditReportAction(reportAction) || canEditReportAction(moneyRequestAction)) && !isArchivedRoom && !isChronosReport,
338+
onPress: (closePopover, {reportID, reportAction, draftMessage, moneyRequestAction}) => {
339+
if (isMoneyRequestAction(reportAction) || isMoneyRequestAction(moneyRequestAction)) {
340340
hideContextMenu(false);
341341
const childReportID = reportAction?.childReportID;
342342
openReport(childReportID);

0 commit comments

Comments
 (0)