From 18ca5c12aa5e08d76e39ad72f8e7892ff2d67014 Mon Sep 17 00:00:00 2001 From: Youssef Lourayad Date: Wed, 13 Sep 2023 06:46:37 +0800 Subject: [PATCH] Merge pull request #27300 from Expensify/revert-26638-fix/26121-remove-domain-name Revert "26121-remove-domain-name" (cherry picked from commit 85f950a5192973f6ce9ba600110b1ac1b3145d26) --- src/libs/PersonalDetailsUtils.js | 3 +-- src/libs/actions/IOU.js | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/libs/PersonalDetailsUtils.js b/src/libs/PersonalDetailsUtils.js index a401dea4b911..1d4966826492 100644 --- a/src/libs/PersonalDetailsUtils.js +++ b/src/libs/PersonalDetailsUtils.js @@ -4,7 +4,6 @@ import _ from 'underscore'; import ONYXKEYS from '../ONYXKEYS'; import * as Localize from './Localize'; import * as UserUtils from './UserUtils'; -import * as LocalePhoneNumber from './LocalePhoneNumber'; let personalDetails = []; let allPersonalDetails = {}; @@ -116,7 +115,7 @@ function getNewPersonalDetailsOnyxData(logins, accountIDs) { login, accountID, avatar: UserUtils.getDefaultAvatarURL(accountID), - displayName: LocalePhoneNumber.formatPhoneNumber(login), + displayName: login, }; /** diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 2102ed9223c8..a9768be5f94f 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -464,8 +464,8 @@ function getMoneyRequestInformation( [payerAccountID]: { accountID: payerAccountID, avatar: UserUtils.getDefaultAvatarURL(payerAccountID), - displayName: participant.displayName || participant.login, - login: payerEmail, + displayName: participant.displayName || payerEmail, + login: participant.login, }, } : undefined; @@ -855,8 +855,8 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco [accountID]: { accountID, avatar: UserUtils.getDefaultAvatarURL(accountID), - displayName: participant.displayName || participant.login, - login: email, + displayName: participant.displayName || email, + login: participant.login, }, } : undefined;