Skip to content

Commit

Permalink
use variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperhuangg committed Apr 25, 2023
1 parent 5ec9485 commit 3c2671a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,10 @@ function createOption(logins, personalDetails, report, reportActions = {}, {
}
reportName = ReportUtils.getReportName(report, policies);
} else {
reportName = ReportUtils.getDisplayNameForParticipant(logins[0]);
result.keyForList = logins[0];
result.alternateText = LocalePhoneNumber.formatPhoneNumber(logins[0]);
const login = logins[0];
reportName = ReportUtils.getDisplayNameForParticipant(login);
result.keyForList = login;
result.alternateText = LocalePhoneNumber.formatPhoneNumber(login);
}

result.isIOUReportOwner = ReportUtils.isIOUOwnedByCurrentUser(result, iouReports);
Expand Down

0 comments on commit 3c2671a

Please sign in to comment.