Skip to content

Commit

Permalink
rename variable for clarity in report name formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Feb 5, 2025
1 parent 1dd1ac2 commit df6d351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4496,8 +4496,8 @@ function getReportNameInternal({

if (isInvoiceReport(report)) {
const moneyRequestReportName = getMoneyRequestReportName({report, policy, invoiceReceiverPolicy});
const ODInvoiceName = report?.reportName ?? moneyRequestReportName;
formattedName = isNewDotInvoice(report?.chatReportID) ? moneyRequestReportName : ODInvoiceName;
const oldDotInvoiceName = report?.reportName ?? moneyRequestReportName;
formattedName = isNewDotInvoice(report?.chatReportID) ? moneyRequestReportName : oldDotInvoiceName;
}

if (isInvoiceRoom(report)) {
Expand Down

0 comments on commit df6d351

Please sign in to comment.