Skip to content

Commit

Permalink
Merge pull request #24227 from samh-nl/fix/issue-23724
Browse files Browse the repository at this point in the history
fix: format phone number
  • Loading branch information
tgolen authored Aug 8, 2023
2 parents fdcae9f + 84f295f commit dd21a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ReportParticipantsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import _ from 'underscore';
import {View} from 'react-native';
import PropTypes from 'prop-types';
import {withOnyx} from 'react-native-onyx';
import Str from 'expensify-common/lib/str';
import lodashGet from 'lodash/get';
import styles from '../styles/styles';
import ONYXKEYS from '../ONYXKEYS';
Expand All @@ -21,6 +20,7 @@ import withReportOrNotFound from './home/report/withReportOrNotFound';
import FullPageNotFoundView from '../components/BlockingViews/FullPageNotFoundView';
import CONST from '../CONST';
import * as UserUtils from '../libs/UserUtils';
import * as LocalePhoneNumber from '../libs/LocalePhoneNumber';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -60,7 +60,7 @@ const getAllParticipants = (report, personalDetails, translate) => {
return _.chain(participantAccountIDs)
.map((accountID, index) => {
const userPersonalDetail = lodashGet(personalDetails, accountID, {displayName: personalDetails.displayName || translate('common.hidden'), avatar: ''});
const userLogin = Str.removeSMSDomain(userPersonalDetail.login || '') || translate('common.hidden');
const userLogin = LocalePhoneNumber.formatPhoneNumber(userPersonalDetail.login || '') || translate('common.hidden');

return {
alternateText: userLogin,
Expand Down

0 comments on commit dd21a0b

Please sign in to comment.