fix: format twilio api response

This commit is contained in:
José Oliveira 2022-02-22 15:17:46 +00:00
parent 3c33695b9d
commit 229c77eca2
2 changed files with 23 additions and 2 deletions

View file

@ -103,7 +103,7 @@ const CustomerData = ({
)
const phone = R.path(['phone'])(customer)
const smsData = R.path(['subscriberInfo', 'result'])(customer)
const smsData = R.path(['subscriberInfo'])(customer)
const isEven = elem => elem % 2 === 0
@ -373,7 +373,7 @@ const CustomerData = ({
name: it,
label: onlyFirstToUpper(it),
component: TextInput,
editable: true
editable: false
})
}, R.keys(smsData) ?? [])