fix: disable phone field editable

This commit is contained in:
José Oliveira 2022-01-21 15:05:49 +00:00
parent 38d6f7edf5
commit 0cca8b3bf1
4 changed files with 12 additions and 23 deletions

View file

@ -165,8 +165,7 @@ function edit (id, data, userToken) {
'id_card_photo',
'us_ssn',
'subscriber_info',
'name',
'phone'
'name'
]
const filteredData = _.pick(defaults, _.mapKeys(_.snakeCase, _.omitBy(_.isNil, data)))
if (_.isEmpty(filteredData)) return getCustomerById(id)
@ -753,8 +752,7 @@ function selectLatestData (customerData, customerEditedData) {
'id_card_photo',
'us_ssn',
'subscriber_info',
'name',
'phone'
'name'
]
_.map(field => {
let fieldName = field