Skip to content

Commit

Permalink
changed the const name
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorawski committed Sep 4, 2023
1 parent 7e05509 commit 61f3677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,9 @@ function getShareDestination(reportID, reports, personalDetails) {
const report = lodashGet(reports, `report_${reportID}`, {});
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 login = lodashGet(personalDetails, [participantAccountId, 'login']);
const participantAccountID = lodashGet(report, 'participantAccountIDs[0]');
const phoneNumber = lodashGet(personalDetails, [participantAccountID, 'phoneNumber']);
const login = lodashGet(personalDetails, [participantAccountID, 'login']);
subtitle = LocalePhoneNumber.formatPhoneNumber(phoneNumber || login);
} else {
subtitle = ReportUtils.getChatRoomSubtitle(report);
Expand Down

0 comments on commit 61f3677

Please sign in to comment.