diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index b56c08f7ca5a..6d58122f0423 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -272,7 +272,7 @@ function createOption(logins, personalDetails, report, reportActions = {}, { const personalDetailMap = getPersonalDetailsForLogins(logins, personalDetails); const personalDetailList = _.values(personalDetailMap); - const personalDetail = personalDetailList[0]; + const personalDetail = personalDetailList[0] || {}; let hasMultipleParticipants = personalDetailList.length > 1; let subtitle; @@ -349,7 +349,7 @@ function createOption(logins, personalDetails, report, reportActions = {}, { result.text = reportName; result.subtitle = subtitle; result.participantsList = personalDetailList; - result.icons = ReportUtils.getIcons(report, personalDetails, policies); + result.icons = ReportUtils.getIcons(report, personalDetails, policies, personalDetail.avatar); result.searchText = getSearchText(report, reportName, personalDetailList, result.isChatRoom || result.isPolicyExpenseChat); return result;