diff --git a/content/snippets/phone-input.mdx b/content/snippets/phone-input.mdx index 28a638c..2e0aa24 100644 --- a/content/snippets/phone-input.mdx +++ b/content/snippets/phone-input.mdx @@ -122,7 +122,7 @@ const CountrySelect = ({ No country found. {countryList.map(({ value, label }) => - countryCode ? ( + value ? ( onChange(country)}> {countryName} - {`+${RPNInput.getCountryCallingCode(country)}`} + {`+${RPNInput.getCountryCallingCode(country)}`} @@ -168,7 +168,7 @@ const FlagComponent = ({ country, countryName }: RPNInput.FlagProps) => { const Flag = flags[country]; return ( - + {Flag && } );