Feat: compliance blacklisted addresses notifications

This commit is contained in:
Cesar 2020-12-15 18:55:45 +00:00 committed by Josh Harvey
parent 3b3bdf839b
commit 204e421b3d
9 changed files with 55 additions and 21 deletions

View file

@ -11,10 +11,9 @@ const getAuthorizedStatus = it =>
: { 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 => {