diff --git a/new-lamassu-admin/src/pages/Customers/CustomersList.js b/new-lamassu-admin/src/pages/Customers/CustomersList.js
index e65efcf1..8f0a9a21 100644
--- a/new-lamassu-admin/src/pages/Customers/CustomersList.js
+++ b/new-lamassu-admin/src/pages/Customers/CustomersList.js
@@ -11,7 +11,11 @@ import { ReactComponent as TxOutIcon } from 'src/styling/icons/direction/cash-ou
import { ifNotNull } from 'src/utils/nullCheck'
import styles from './CustomersList.styles'
-import { getAuthorizedStatus, getFormattedPhone, getName } from './helper'
+import {
+ getAuthorizedStatus,
+ getName
+ /* getFormattedPhone */
+} from './helper'
const useStyles = makeStyles(styles)
@@ -22,7 +26,7 @@ const CustomersList = ({ data, locale, onClick, loading }) => {
{
header: 'Phone',
width: 172,
- view: it => getFormattedPhone(it.phone, locale.country)
+ view: it => it.phone // getFormattedPhone(it.phone, locale.country)
},
{
header: 'Name',
diff --git a/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js b/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js
index 7fd988e7..6d94f801 100644
--- a/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js
+++ b/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js
@@ -9,7 +9,7 @@ import { ReactComponent as LawIconInverse } from 'src/styling/icons/circle butto
import { ReactComponent as LawIcon } from 'src/styling/icons/circle buttons/law/zodiac.svg'
import mainStyles from '../CustomersList.styles'
-import { getFormattedPhone, getName } from '../helper'
+import { /* getFormattedPhone, */ getName } from '../helper'
import FrontCameraPhoto from './FrontCameraPhoto'
@@ -22,7 +22,7 @@ const CustomerDetails = memo(({ customer, locale, setShowCompliance }) => {
{
header: 'Phone number',
size: 172,
- value: getFormattedPhone(customer.phone, locale.country)
+ value: customer.phone // getFormattedPhone(customer.phone, locale.country)
},
{
header: 'ID number',
@@ -47,9 +47,8 @@ const CustomerDetails = memo(({ customer, locale, setShowCompliance }) => {
- {name.length
- ? name
- : getFormattedPhone(R.path(['phone'])(customer), locale.country)}
+ {name.length ? name : R.path(['phone'])(customer)}
+ {/* getFormattedPhone(R.path(['phone'])(customer), locale.country)} */}
: { label: 'Authorized', type: 'success' }
const getFormattedPhone = (phone, country) => {
- const phoneNumber =
- phone && country ? parsePhoneNumberFromString(phone, country) : null
-
- return phoneNumber ? phoneNumber.formatInternational() : phone
+ return phone && country
+ ? parsePhoneNumberFromString(phone, country).formatInternational()
+ : ''
}
const getName = it => {