Skip to content

Commit 328d53f

Browse files
authored
Merge pull request Expensify#67457 from nkdengineer/fix/66839
fix: Contact name not displayed in expense
2 parents 0acc12a + 1cd8c4f commit 328d53f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/libs/OptionsListUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,9 @@ function getUserToInviteContactOption({
15951595
const userToInvite = {
15961596
item: userDetails,
15971597
text: displayName,
1598+
displayName,
1599+
firstName,
1600+
lastName,
15981601
alternateText: displayName !== effectiveSearchValue ? effectiveSearchValue : undefined,
15991602
brickRoadIndicator: null,
16001603
icons: [

src/pages/iou/request/MoneyRequestParticipantsSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function MoneyRequestParticipantsSelector(
346346
(option: Participant & Option) => {
347347
const newParticipants: Participant[] = [
348348
{
349-
...lodashPick(option, 'accountID', 'login', 'isPolicyExpenseChat', 'reportID', 'searchText', 'policyID', 'isSelfDM', 'text', 'phoneNumber'),
349+
...lodashPick(option, 'accountID', 'login', 'isPolicyExpenseChat', 'reportID', 'searchText', 'policyID', 'isSelfDM', 'text', 'phoneNumber', 'displayName'),
350350
selected: true,
351351
iouType,
352352
},

0 commit comments

Comments
 (0)