Skip to content

Commit

Permalink
Merge pull request #20823 from fedirjh/Fix-Email_is_missing
Browse files Browse the repository at this point in the history
[Fix] Missing Email in Workspace invite page
  • Loading branch information
Beamanator authored Jun 15, 2023
2 parents f15e6dc + 2cad3a6 commit d34f9a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ function getPersonalDetailsForAccountIDs(accountIDs, personalDetails) {
let personalDetail = personalDetails[accountID];
if (!personalDetail) {
personalDetail = {
accountID: cleanAccountID,
avatar: UserUtils.getDefaultAvatar(cleanAccountID),
};
}
Expand All @@ -190,6 +189,7 @@ function getPersonalDetailsForAccountIDs(accountIDs, personalDetails) {
personalDetail.avatar = CONST.CONCIERGE_ICON_URL;
}

personalDetail.accountID = cleanAccountID;
personalDetailsForAccountIDs[cleanAccountID] = personalDetail;
});
return personalDetailsForAccountIDs;
Expand Down Expand Up @@ -475,7 +475,7 @@ function createOption(accountIDs, personalDetails, report, reportActions = {}, {
} else {
reportName = ReportUtils.getDisplayNameForParticipant(accountIDs[0]);
result.keyForList = String(accountIDs[0]);
result.alternateText = '';
result.alternateText = LocalePhoneNumber.formatPhoneNumber(lodashGet(personalDetails, [accountIDs[0], 'login'], ''));
}

result.isIOUReportOwner = ReportUtils.isIOUOwnedByCurrentUser(result, iouReports);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const personalDetailsSelector = (personalDetails) =>
// It's OK to do param-reassignment in _.reduce() because we absolutely know the starting state of finalPersonalDetails
// eslint-disable-next-line no-param-reassign
finalPersonalDetails[accountID] = {
accountID,
accountID: Number(accountID),
login: personalData.login,
displayName: personalData.displayName,
firstName: personalData.firstName,
Expand Down

0 comments on commit d34f9a3

Please sign in to comment.