Skip to content

Commit

Permalink
fix approve button shows for invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Dec 3, 2024
1 parent 5bb0e9b commit 938b032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6900,7 +6900,7 @@ function canApproveIOU(
) {
// Only expense reports can be approved
const isPaidGroupPolicy = policy && PolicyUtils.isPaidGroupPolicy(policy);
if (!isPaidGroupPolicy) {
if (!ReportUtils.isExpenseReport(iouReport) || !isPaidGroupPolicy) {
return false;
}

Expand Down

0 comments on commit 938b032

Please sign in to comment.