Skip to content

Commit

Permalink
fix: displaying avatars in LHNOptionList
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz committed Nov 7, 2023
1 parent da2c79e commit d080668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/LHNOptionsList/LHNOptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ function LHNOptionsList({
'',
)}`;
const itemComment = draftComments[`${ONYXKEYS.COLLECTION.REPORT_DRAFT_COMMENT}${reportID}`] || '';
const participantPersonalDetailList = _.values(OptionsListUtils.getPersonalDetailsForAccountIDs(itemFullReport.participantAccountIDs, personalDetails));
const participantsPersonalDetails = OptionsListUtils.getPersonalDetailsForAccountIDs(itemFullReport.participantAccountIDs, personalDetails);
return (
<OptionRowLHNData
reportID={reportID}
fullReport={itemFullReport}
reportActions={itemReportActions}
parentReportActions={itemParentReportActions}
policy={itemPolicy}
personalDetails={participantPersonalDetailList}
personalDetails={participantsPersonalDetails}
transaction={itemTransaction}
receiptTransactions={transactions}
viewMode={optionMode}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LHNOptionsList/OptionRowLHNData.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const propTypes = {
isFocused: PropTypes.bool,

/** List of users' personal details */
personalDetails: PropTypes.arrayOf(participantPropTypes),
personalDetails: PropTypes.objectOf(participantPropTypes),

/** The preferred language for the app */
preferredLocale: PropTypes.string,
Expand Down

0 comments on commit d080668

Please sign in to comment.