diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index d2ec8fb3ac62..661a508dc696 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -4074,11 +4074,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)) { diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index 696853f49fd7..1a3f4b501e78 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -2097,7 +2097,14 @@ function getSendInvoiceInformation( } // STEP 2: Create a new optimistic invoice report. - const optimisticInvoiceReport = ReportUtils.buildOptimisticInvoiceReport(chatReport.reportID, senderWorkspaceID, receiverAccountID, receiver.displayName ?? '', amount, currency); + const optimisticInvoiceReport = ReportUtils.buildOptimisticInvoiceReport( + chatReport.reportID, + senderWorkspaceID, + receiverAccountID, + receiver.displayName ?? (receiverParticipant as Participant)?.login ?? '', + amount, + currency, + ); // STEP 3: Build optimistic receipt and transaction const receiptObject: Receipt = {};