We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 833a42c + c8ed13f commit 060160eCopy full SHA for 060160e
src/libs/ReportUtils.ts
@@ -6556,7 +6556,7 @@ function hasHeldExpenses(iouReportID?: string): boolean {
6556
*/
6557
function hasOnlyHeldExpenses(iouReportID: string, transactions?: OnyxCollection<Transaction>): boolean {
6558
const reportTransactions = TransactionUtils.getAllReportTransactions(iouReportID, transactions);
6559
- return !reportTransactions.some((transaction) => !TransactionUtils.isOnHold(transaction));
+ return reportTransactions.length > 0 && !reportTransactions.some((transaction) => !TransactionUtils.isOnHold(transaction));
6560
}
6561
6562
/**
0 commit comments