@@ -176,6 +176,7 @@ type MoneyRequestStepDistanceNavigationParams = {
176176 amountOwed : OnyxEntry < number > ;
177177 userBillingGracePeriodEnds : OnyxCollection < BillingGraceEndPeriod > ;
178178 ownerBillingGracePeriodEnd ?: OnyxEntry < number > ;
179+ conciergeReportID : string | undefined ;
179180} ;
180181
181182function createTransaction ( {
@@ -297,6 +298,7 @@ function getMoneyRequestParticipantOptions(
297298 report : OnyxEntry < Report > ,
298299 policy : OnyxEntry < Policy > ,
299300 personalDetails : OnyxEntry < PersonalDetailsList > ,
301+ conciergeReportID : string | undefined ,
300302 privateIsArchived ?: boolean ,
301303 reportAttributesDerived ?: ReportAttributesDerivedValue [ 'reports' ] ,
302304) : Array < Participant | OptionData > {
@@ -305,8 +307,7 @@ function getMoneyRequestParticipantOptions(
305307 const participantAccountID = participant ?. accountID ?? CONST . DEFAULT_NUMBER_ID ;
306308 return participantAccountID
307309 ? getParticipantsOption ( participant , personalDetails )
308- : // TODO: We'll pass the conciergeReportID in the next PR. Refactor issue: https://github.com/Expensify/App/issues/66411
309- getReportOption ( participant , privateIsArchived , policy , personalDetails , undefined , reportAttributesDerived ) ;
310+ : getReportOption ( participant , privateIsArchived , policy , personalDetails , conciergeReportID , reportAttributesDerived ) ;
310311 } ) ;
311312}
312313
@@ -606,6 +607,7 @@ function handleMoneyRequestStepDistanceNavigation({
606607 amountOwed,
607608 userBillingGracePeriodEnds,
608609 ownerBillingGracePeriodEnd,
610+ conciergeReportID,
609611} : MoneyRequestStepDistanceNavigationParams ) {
610612 const isManualDistance = manualDistance !== undefined ;
611613 const isOdometerDistance = odometerDistance !== undefined ;
@@ -628,7 +630,7 @@ function handleMoneyRequestStepDistanceNavigation({
628630 // to the confirm step.
629631 // If the user started this flow using the Create expense option (combined submit/track flow), they should be redirected to the participants page.
630632 if ( report ?. reportID && ! isArchivedExpenseReport && iouType !== CONST . IOU . TYPE . CREATE ) {
631- const participants = getMoneyRequestParticipantOptions ( currentUserAccountID , report , policy , personalDetails , privateIsArchived , reportAttributesDerived ) ;
633+ const participants = getMoneyRequestParticipantOptions ( currentUserAccountID , report , policy , personalDetails , conciergeReportID , privateIsArchived , reportAttributesDerived ) ;
632634
633635 setDistanceRequestData ?.( participants ) ;
634636 if ( shouldSkipConfirmation ) {
0 commit comments