Skip to content

Commit 1cd8c4f

Browse files
committed
fix: Contact name not displayed in expense
1 parent 35b81ab commit 1cd8c4f

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
@@ -1619,6 +1619,9 @@ function getUserToInviteContactOption({
16191619
const userToInvite = {
16201620
item: userDetails,
16211621
text: displayName,
1622+
displayName,
1623+
firstName,
1624+
lastName,
16221625
alternateText: displayName !== effectiveSearchValue ? effectiveSearchValue : undefined,
16231626
brickRoadIndicator: null,
16241627
icons: [

src/pages/iou/request/MoneyRequestParticipantsSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ function MoneyRequestParticipantsSelector(
366366
(option: Participant & Option) => {
367367
const newParticipants: Participant[] = [
368368
{
369-
...lodashPick(option, 'accountID', 'login', 'isPolicyExpenseChat', 'reportID', 'searchText', 'policyID', 'isSelfDM', 'text', 'phoneNumber'),
369+
...lodashPick(option, 'accountID', 'login', 'isPolicyExpenseChat', 'reportID', 'searchText', 'policyID', 'isSelfDM', 'text', 'phoneNumber', 'displayName'),
370370
selected: true,
371371
iouType,
372372
},

0 commit comments

Comments
 (0)