Skip to content

Commit

Permalink
Merge pull request #26638 from pradeepmdk/fix/26121-remove-domain-name
Browse files Browse the repository at this point in the history
  • Loading branch information
Li357 authored Sep 11, 2023
2 parents 544661b + 830aa86 commit adac19c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/libs/PersonalDetailsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ 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 = {};
Expand Down Expand Up @@ -115,7 +116,7 @@ function getNewPersonalDetailsOnyxData(logins, accountIDs) {
login,
accountID,
avatar: UserUtils.getDefaultAvatarURL(accountID),
displayName: login,
displayName: LocalePhoneNumber.formatPhoneNumber(login),
};

/**
Expand Down
8 changes: 4 additions & 4 deletions src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ function getMoneyRequestInformation(
[payerAccountID]: {
accountID: payerAccountID,
avatar: UserUtils.getDefaultAvatarURL(payerAccountID),
displayName: participant.displayName || payerEmail,
login: participant.login,
displayName: participant.displayName || participant.login,
login: payerEmail,
},
}
: undefined;
Expand Down Expand Up @@ -851,8 +851,8 @@ function createSplitsAndOnyxData(participants, currentUserLogin, currentUserAcco
[accountID]: {
accountID,
avatar: UserUtils.getDefaultAvatarURL(accountID),
displayName: participant.displayName || email,
login: participant.login,
displayName: participant.displayName || participant.login,
login: email,
},
}
: undefined;
Expand Down

0 comments on commit adac19c

Please sign in to comment.