Skip to content

Commit

Permalink
Merge pull request #22566 from c3024/22050-display-phone-contact-in-t…
Browse files Browse the repository at this point in the history
…ask-assignee-without-expensify.sms

display phone contact in assignee without .sms
  • Loading branch information
bondydaa authored Jul 13, 2023
2 parents 92ecd6b + 9d060dc commit 6e6b95f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/tasks/NewTaskPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import * as OptionsListUtils from '../../libs/OptionsListUtils';
import * as ReportUtils from '../../libs/ReportUtils';
import FormAlertWithSubmitButton from '../../components/FormAlertWithSubmitButton';
import FullPageNotFoundView from '../../components/BlockingViews/FullPageNotFoundView';
import * as LocalePhoneNumber from '../../libs/LocalePhoneNumber';

const propTypes = {
/** Task Creation Data */
Expand Down Expand Up @@ -158,7 +159,7 @@ function NewTaskPage(props) {
<MenuItem
label={assignee.displayName ? props.translate('task.assignee') : ''}
title={assignee.displayName || ''}
description={assignee.displayName ? assignee.subtitle : props.translate('task.assignee')}
description={assignee.displayName ? LocalePhoneNumber.formatPhoneNumber(assignee.subtitle) : props.translate('task.assignee')}
icon={assignee.icons}
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_ASSIGNEE)}
shouldShowRightIcon
Expand Down

0 comments on commit 6e6b95f

Please sign in to comment.