Skip to content

Commit

Permalink
use reportName for invoice report
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Dec 12, 2024
1 parent 50c1db8 commit a2aeb0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4066,11 +4066,7 @@ function getReportName(
}

if (isInvoiceReport(report)) {
if (!isInvoiceRoom(getReport(report?.chatReportID ?? ''))) {
return report?.reportName ?? getMoneyRequestReportName(report, policy, invoiceReceiverPolicy);
}

formattedName = getMoneyRequestReportName(report, policy, invoiceReceiverPolicy);
formattedName = report?.reportName ?? getMoneyRequestReportName(report, policy, invoiceReceiverPolicy);
}

if (isInvoiceRoom(report)) {
Expand Down

0 comments on commit a2aeb0f

Please sign in to comment.