feat(SW-543): update contact config function
This commit is contained in:
@@ -77,8 +77,7 @@ export type ContactConfig = ContactConfigData["all_contact_config"]["items"][0]
|
||||
export type ContactFields = {
|
||||
display_text: string | null
|
||||
contact_field: string
|
||||
footnote: string | null
|
||||
selectTest: string
|
||||
phoneFootnote?: string | null
|
||||
}
|
||||
|
||||
export const validateCurrentHeaderConfigSchema = z
|
||||
|
||||
@@ -112,9 +112,9 @@ export function getAlertPhoneContactData(
|
||||
|
||||
return {
|
||||
displayText,
|
||||
phoneNumber: getValueFromContactConfig(phoneNumber, contactConfig),
|
||||
phoneNumber: getValueFromContactConfig(contactConfig, phoneNumber),
|
||||
footnote: footnote
|
||||
? getValueFromContactConfig(footnote, contactConfig)
|
||||
? getValueFromContactConfig(contactConfig, footnote)
|
||||
: null,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user