diff --git a/src/components/Form/FormFields/PhoneNumberFormField.tsx b/src/components/Form/FormFields/PhoneNumberFormField.tsx index 0fd6f914035..bec0da32d29 100644 --- a/src/components/Form/FormFields/PhoneNumberFormField.tsx +++ b/src/components/Form/FormFields/PhoneNumberFormField.tsx @@ -94,6 +94,7 @@ const PhoneNumberFormField = React.forwardRef( }; useEffect(() => { + console.log(field.value); if (field.value && field.value.length > 0) { if (field.value.startsWith("1800")) { setCountry({ flag: "📞", name: "Support", code: "1800" }); @@ -105,7 +106,7 @@ const PhoneNumberFormField = React.forwardRef( } setCountry(phoneCodes[getCountryCode(field.value)!]); } - }, [setValue]); + }, [field.value]); return (