Skip to content

Commit 4a939b2

Browse files
authored
Merge pull request Expensify#63326 from nabi-ebrahimi/fix/approval-flow-missing-approve-button-approver-c
fix: Missing Approve button for Aprrover C in the report detail or preview
2 parents 736f6fd + 51699ed commit 4a939b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/ReportPrimaryActionUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function isApproveAction(report: Report, reportTransactions: Transaction[], poli
9494
return false;
9595
}
9696
const isExpenseReport = isExpenseReportUtils(report);
97-
const isReportApprover = isApproverUtils(policy, currentUserAccountID);
97+
const isReportApprover = isApproverUtils(policy, currentUserAccountID) || managerID === currentUserAccountID;
9898
const isApprovalEnabled = policy?.approvalMode && policy.approvalMode !== CONST.POLICY.APPROVAL_MODE.OPTIONAL;
9999

100100
if (!isExpenseReport || !isReportApprover || !isApprovalEnabled || reportTransactions.length === 0) {

0 commit comments

Comments
 (0)