Skip to content

Commit

Permalink
Update src/libs/actions/IOU.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Agrawal <[email protected]>
  • Loading branch information
nkdengineer and shubham1206agra authored Feb 6, 2025
1 parent 5222149 commit 23f0670
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 @@ -7934,7 +7934,7 @@ function canApproveIOU(
}
const isPayAtEndExpenseReport = isPayAtEndExpenseReportReportUtils(iouReport?.reportID, reportTransactions);

return isCurrentUserManager && !isOpenExpenseReport && !isApproved && !iouSettled && !isArchivedExpenseReport && !isPayAtEndExpenseReport;
return reportTransactions.length > 0 && isCurrentUserManager && !isOpenExpenseReport && !isApproved && !iouSettled && !isArchivedExpenseReport && !isPayAtEndExpenseReport;
}

function canIOUBePaid(
Expand Down

0 comments on commit 23f0670

Please sign in to comment.