Skip to content

Commit

Permalink
fix(form): remove ? typo (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
masopego committed Nov 24, 2022
1 parent ab95f0e commit 4d6a22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Questions/Phone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4d6a22f

Please sign in to comment.