Skip to content

Commit 23f0670

Browse files
Update src/libs/actions/IOU.ts
Co-authored-by: Shubham Agrawal <[email protected]>
1 parent 5222149 commit 23f0670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/actions/IOU.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7934,7 +7934,7 @@ function canApproveIOU(
79347934
}
79357935
const isPayAtEndExpenseReport = isPayAtEndExpenseReportReportUtils(iouReport?.reportID, reportTransactions);
79367936

7937-
return isCurrentUserManager && !isOpenExpenseReport && !isApproved && !iouSettled && !isArchivedExpenseReport && !isPayAtEndExpenseReport;
7937+
return reportTransactions.length > 0 && isCurrentUserManager && !isOpenExpenseReport && !isApproved && !iouSettled && !isArchivedExpenseReport && !isPayAtEndExpenseReport;
79387938
}
79397939

79407940
function canIOUBePaid(

0 commit comments

Comments
 (0)