feat(SW-543): clean up
This commit is contained in:
@@ -16,8 +16,10 @@ export default async function ContactRow({ contact }: ContactRowProps) {
|
||||
return null
|
||||
}
|
||||
|
||||
const val = getValueFromContactConfig(data, contact.contact_field)
|
||||
const footnote = getValueFromContactConfig(data, contact.phoneFootnote)
|
||||
const val = getValueFromContactConfig(contact.contact_field, data)
|
||||
const footnote = contact.phoneFootnote
|
||||
? getValueFromContactConfig(contact.phoneFootnote, data)
|
||||
: null
|
||||
|
||||
if (!val) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user