Skip to content

Commit

Permalink
fix: format phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
samh-nl committed Aug 7, 2023
1 parent 242bfe7 commit 84f295f
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 84f295f

Please sign in to comment.