Skip to content

Commit

Permalink
Added formatPhoneNumber on sharecode page
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyasenjaliya committed Jul 3, 2023
1 parent b0add94 commit 7df94be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/ShareCodePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ShareCodePage extends React.Component {

const platform = getPlatform();
const isNative = platform === CONST.PLATFORM.IOS || platform === CONST.PLATFORM.ANDROID;
const formattedEmail = this.props.formatPhoneNumber(this.props.session.email);

return (
<ScreenWrapper>
Expand All @@ -65,7 +66,7 @@ class ShareCodePage extends React.Component {
ref={this.qrCodeRef}
url={url}
title={isReport ? this.props.report.reportName : this.props.currentUserPersonalDetails.displayName}
subtitle={isReport ? subtitle : this.props.session.email}
subtitle={isReport ? subtitle : formattedEmail}
logo={isReport ? expensifyLogo : UserUtils.getAvatarUrl(this.props.currentUserPersonalDetails.avatar, this.props.currentUserPersonalDetails.accountID)}
logoRatio={isReport ? CONST.QR.EXPENSIFY_LOGO_SIZE_RATIO : CONST.QR.DEFAULT_LOGO_SIZE_RATIO}
logoMarginRatio={isReport ? CONST.QR.EXPENSIFY_LOGO_MARGIN_RATIO : CONST.QR.DEFAULT_LOGO_MARGIN_RATIO}
Expand Down

0 comments on commit 7df94be

Please sign in to comment.