diff --git a/src/components/MoneyRequestHeader.js b/src/components/MoneyRequestHeader.js index a4ddddfe35ed..de1a08c8f83c 100644 --- a/src/components/MoneyRequestHeader.js +++ b/src/components/MoneyRequestHeader.js @@ -61,7 +61,7 @@ function MoneyRequestHeader(props) { const parentReportAction = ReportActionsUtils.getParentReportAction(props.report); // Only the requestor can take delete the request, admins can only edit it. - const isRequestor = parentReportAction.actorAccountID === lodashGet(props.session, 'accountID', null); + const isActionOwner = parentReportAction.actorAccountID === lodashGet(props.session, 'accountID', null); const report = props.report; report.ownerAccountID = lodashGet(props, ['parentReport', 'ownerAccountID'], null); report.ownerEmail = lodashGet(props, ['parentReport', 'ownerEmail'], ''); @@ -80,7 +80,7 @@ function MoneyRequestHeader(props) {