diff --git a/src/components/ReportActionItem/MoneyRequestAction.js b/src/components/ReportActionItem/MoneyRequestAction.js index e0a3152a41b4..4fca8a0a1aea 100644 --- a/src/components/ReportActionItem/MoneyRequestAction.js +++ b/src/components/ReportActionItem/MoneyRequestAction.js @@ -34,6 +34,9 @@ const propTypes = { /** The ID of the associated request report */ requestReportID: PropTypes.string.isRequired, + /** The ID of the current report */ + reportID: PropTypes.string.isRequired, + /** Is this IOUACTION the most recent? */ isMostRecentIOUReportAction: PropTypes.bool.isRequired, @@ -81,6 +84,7 @@ function MoneyRequestAction({ action, chatReportID, requestReportID, + reportID, isMostRecentIOUReportAction, contextMenuAnchor, checkIfContextMenuActive, @@ -136,6 +140,7 @@ function MoneyRequestAction({ { - showContextMenuForReport(event, props.contextMenuAnchor, props.chatReportID, props.action, props.checkIfContextMenuActive); + showContextMenuForReport(event, props.contextMenuAnchor, props.reportID, props.action, props.checkIfContextMenuActive); }; const getPreviewHeaderText = () => { diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 80fb341a2cf8..6e345cf92961 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -349,6 +349,7 @@ function ReportActionItem(props) { // If originalMessage.iouReportID is set, this is a 1:1 money request in a DM chat whose reportID is props.report.chatReportID chatReportID={originalMessage.IOUReportID ? props.report.chatReportID : props.report.reportID} requestReportID={iouReportID} + reportID={props.report.reportID} action={props.action} isMostRecentIOUReportAction={props.isMostRecentIOUReportAction} isHovered={hovered}