Skip to content

Commit

Permalink
Merge pull request Expensify#24441 from chiragxarora/fix/22999
Browse files Browse the repository at this point in the history
formatting phone login
  • Loading branch information
stitesExpensify authored Aug 15, 2023
2 parents 2854808 + 248f156 commit d2762e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,9 +898,10 @@ function getSearchOptions(reports, personalDetails, searchValue = '', betas) {
* @returns {Object}
*/
function getIOUConfirmationOptionsFromPayeePersonalDetail(personalDetail, amountText) {
const formattedLogin = LocalePhoneNumber.formatPhoneNumber(personalDetail.login);
return {
text: personalDetail.displayName ? personalDetail.displayName : personalDetail.login,
alternateText: personalDetail.login || personalDetail.displayName,
text: personalDetail.displayName || formattedLogin,
alternateText: formattedLogin || personalDetail.displayName,
icons: [
{
source: UserUtils.getAvatar(personalDetail.avatar, personalDetail.accountID),
Expand Down

0 comments on commit d2762e7

Please sign in to comment.