Skip to content

Commit

Permalink
handle case when invoice out of invoice room
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Dec 10, 2024
1 parent 38d3de4 commit fa8ec14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4049,6 +4049,10 @@ function getReportName(
}

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

formattedName = getMoneyRequestReportName(report, policy, invoiceReceiverPolicy);
}

Expand Down

0 comments on commit fa8ec14

Please sign in to comment.