Skip to content

Commit 501e0d1

Browse files
committed
fix: remove redundant param
1 parent ee7567d commit 501e0d1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/AvatarWithDisplayName.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function AvatarWithDisplayName({
190190
const parentReportActionParam = report?.parentReportActionID ? parentReportActions?.[report.parentReportActionID] : undefined;
191191
const title = getReportName(report, undefined, parentReportActionParam, personalDetails, invoiceReceiverPolicy, reportAttributes);
192192
const subtitle = getChatRoomSubtitle(report, {isCreateExpenseFlow: true});
193-
const parentNavigationSubtitleData = getParentNavigationSubtitle(report, undefined, policy);
193+
const parentNavigationSubtitleData = getParentNavigationSubtitle(report, policy);
194194
const isMoneyRequestOrReport = isMoneyRequestReport(report) || isMoneyRequest(report) || isTrackExpenseReport(report) || isInvoiceReport(report);
195195
const icons = getIcons(report, personalDetails, null, '', -1, policy, invoiceReceiverPolicy);
196196
const ownerPersonalDetails = getPersonalDetailsForAccountIDs(report?.ownerAccountID ? [report.ownerAccountID] : [], personalDetails);

src/libs/ReportUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5383,7 +5383,7 @@ function getPendingChatMembers(accountIDs: number[], previousPendingChatMembers:
53835383
/**
53845384
* Gets the parent navigation subtitle for the report
53855385
*/
5386-
function getParentNavigationSubtitle(report: OnyxEntry<Report>, invoiceReceiverPolicy?: OnyxEntry<Policy>, policy?: Policy): ParentNavigationSummaryParams {
5386+
function getParentNavigationSubtitle(report: OnyxEntry<Report>, policy?: Policy): ParentNavigationSummaryParams {
53875387
const parentReport = getParentReport(report);
53885388
if (isEmptyObject(parentReport)) {
53895389
const ownerAccountID = report?.ownerAccountID;
@@ -5405,7 +5405,7 @@ function getParentNavigationSubtitle(report: OnyxEntry<Report>, invoiceReceiverP
54055405
}
54065406

54075407
if (isInvoiceReport(report) || isInvoiceRoom(parentReport)) {
5408-
let reportName = `${getPolicyName({report: parentReport})} & ${getInvoicePayerName(parentReport, invoiceReceiverPolicy)}`;
5408+
let reportName = `${getPolicyName({report: parentReport})} & ${getInvoicePayerName(parentReport)}`;
54095409

54105410
// This will get removed as part of https://github.com/Expensify/App/issues/59961
54115411
// eslint-disable-next-line deprecation/deprecation

0 commit comments

Comments
 (0)