Skip to content

Commit

Permalink
fix error with same function/var name
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Oct 13, 2023
1 parent f748a17 commit 8786ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1580,8 +1580,8 @@ function getReportPreviewMessage(report, reportAction = {}, shouldConsiderReceip
return Localize.translateLocal('iou.waitingOnBankAccount', {submitterDisplayName});
}

const hasNonReimbursableTransactions = hasNonReimbursableTransactions(report.reportID);
return Localize.translateLocal(hasNonReimbursableTransactions ? 'iou.payerSpentAmount' : 'iou.payerOwesAmount', {payer: payerName, amount: formattedAmount});
const containsNonReimbursable = hasNonReimbursableTransactions(report.reportID);
return Localize.translateLocal(containsNonReimbursable ? 'iou.payerSpentAmount' : 'iou.payerOwesAmount', {payer: payerName, amount: formattedAmount});
}

/**
Expand Down

0 comments on commit 8786ad4

Please sign in to comment.