Skip to content

Commit

Permalink
rename all transactions variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Dec 5, 2023
1 parent d8b9f9e commit 206dffe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,8 +906,8 @@ function hasSingleParticipant(report: OnyxEntry<Report>): boolean {
*
*/
function hasOnlyDistanceRequestTransactions(iouReportID: string | undefined): boolean {
const allTransactions = TransactionUtils.getAllReportTransactions(iouReportID);
return allTransactions.every((transaction) => TransactionUtils.isDistanceRequest(transaction));
const transactions = TransactionUtils.getAllReportTransactions(iouReportID);
return transactions.every((transaction) => TransactionUtils.isDistanceRequest(transaction));
}

/**
Expand Down Expand Up @@ -1586,8 +1586,8 @@ function requiresAttentionFromCurrentUser(option: OnyxEntry<Report> | OptionData
*
*/
function hasNonReimbursableTransactions(iouReportID: string | undefined): boolean {
const allTransactions = TransactionUtils.getAllReportTransactions(iouReportID);
return allTransactions.filter((transaction) => transaction.reimbursable === false).length > 0;
const transactions = TransactionUtils.getAllReportTransactions(iouReportID);
return transactions.filter((transaction) => transaction.reimbursable === false).length > 0;
}

function getMoneyRequestReimbursableTotal(report: OnyxEntry<Report>, allReportsDict: OnyxCollection<Report> = null): number {
Expand Down Expand Up @@ -1835,8 +1835,8 @@ function canEditReportAction(reportAction: OnyxEntry<ReportAction>): boolean {
* Gets all transactions on an IOU report with a receipt
*/
function getTransactionsWithReceipts(iouReportID: string | undefined): Transaction[] {
const allTransactions = TransactionUtils.getAllReportTransactions(iouReportID);
return allTransactions.filter((transaction) => TransactionUtils.hasReceipt(transaction));
const transactions = TransactionUtils.getAllReportTransactions(iouReportID);
return transactions.filter((transaction) => TransactionUtils.hasReceipt(transaction));
}

/**
Expand Down

0 comments on commit 206dffe

Please sign in to comment.