diff --git a/src/components/contact/ContactForm.js b/src/components/contact/ContactForm.js index 5d72576..66003fa 100644 --- a/src/components/contact/ContactForm.js +++ b/src/components/contact/ContactForm.js @@ -36,8 +36,9 @@ export const ContactForm = ({ const [inputPhoneConfirmValue, setInputPhoneConfirmValue] = useState() const [isPhoneConfirmValid, setPhoneConfirmValid] = useState() const [isPhoneConfirmMatch, setPhoneConfirmMatch] = useState() - const [showWhatsappRedirectMessage, setShowWhatsappRedirectMessage] = useState(false) - + const [showWhatsappRedirectMessage, setShowWhatsappRedirectMessage] = + useState(false) + const source = StorageUtils.getInLocalStorage(STORAGE_SOURCE) const requiredField =
{Form.required}
const dptCode = StorageUtils.getInLocalStorage( @@ -46,7 +47,9 @@ export const ContactForm = ({ const dptLibelle = StorageUtils.getInLocalStorage( STORAGE_TEST_DEMOGRAPHIC_DPT_LIBELLE ) - const activationContact = JSON.parse(StorageUtils.getInLocalStorage(STORAGE_ACTIVATION_CONTACT)) + const activationContact = JSON.parse( + StorageUtils.getInLocalStorage(STORAGE_ACTIVATION_CONTACT) + ) const cancel = () => { router.back() @@ -65,7 +68,10 @@ export const ContactForm = ({ client: client, onCompleted: () => { ContactUtils.saveContactRequest(contactType, sendContactQuery) - if(contactType === RequestContact.type.whatsapp && activationContact?.whatsapp_redirect_message?.length > 0) { + if ( + contactType === RequestContact.type.whatsapp && + activationContact?.whatsapp_redirect_message?.length > 0 + ) { setShowWhatsappRedirectMessage(true) } else { goToConfirmation() @@ -217,7 +223,12 @@ export const ContactForm = ({ return ( <> -Error
const isTileContactActive = data.activationTile.activation_tile - localStorage.setItem(STORAGE_ACTIVATION_CONTACT, JSON.stringify(data.activationTile)) + localStorage.setItem( + STORAGE_ACTIVATION_CONTACT, + JSON.stringify(data.activationTile) + ) return ( <>