Skip to content

Commit

Permalink
Update variable name to match other places
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Aug 22, 2023
1 parent f28e275 commit 5a43ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MoneyRequestHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'], '');
Expand All @@ -80,7 +80,7 @@ function MoneyRequestHeader(props) {
<HeaderWithBackButton
shouldShowAvatarWithDisplay
shouldShowPinButton={false}
shouldShowThreeDotsButton={isRequestor && !isSettled}
shouldShowThreeDotsButton={isActionOwner && !isSettled}
threeDotsMenuItems={[
{
icon: Expensicons.Trashcan,
Expand Down

0 comments on commit 5a43ad0

Please sign in to comment.