diff --git a/src/Questions/Phone/index.js b/src/Questions/Phone/index.js index 40cab2ce..6f205705 100644 --- a/src/Questions/Phone/index.js +++ b/src/Questions/Phone/index.js @@ -10,7 +10,7 @@ const QuestionPhone = ({ isMobile, isoCode, question, useForm, ...props }) => { const { clearErrors, errors, register, setError, setValue } = useForm const getDefaultCountry = () => { - if (question?.defaultCountry && question?.defaultCountry !== '') + if (question.defaultCountry && question.defaultCountry !== '') return question?.defaultCountry.toUpperCase() if (isoCode) return isoCode.toUpperCase()