Skip to content

Commit

Permalink
changed phone number to displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorawski committed Sep 4, 2023
1 parent 61f3677 commit 544d97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,9 @@ function getShareDestination(reportID, reports, personalDetails) {
let subtitle = '';
if (ReportUtils.isChatReport(report) && ReportUtils.isDM(report) && ReportUtils.hasSingleParticipant(report)) {
const participantAccountID = lodashGet(report, 'participantAccountIDs[0]');
const phoneNumber = lodashGet(personalDetails, [participantAccountID, 'phoneNumber']);
const displayName = lodashGet(personalDetails, [participantAccountID, 'displayName']);
const login = lodashGet(personalDetails, [participantAccountID, 'login']);
subtitle = LocalePhoneNumber.formatPhoneNumber(phoneNumber || login);
subtitle = LocalePhoneNumber.formatPhoneNumber(login || displayName);
} else {
subtitle = ReportUtils.getChatRoomSubtitle(report);
}
Expand Down

0 comments on commit 544d97f

Please sign in to comment.