💚 Fix React error on <select> default value

pull/1713/head
Alexandre Hajjar 2021-09-07 17:52:34 +02:00
parent 8453a9a37a
commit 78e4eb6bc6
1 changed files with 2 additions and 2 deletions

View File

@ -46,10 +46,10 @@ export default function SelectEuropeCountry({
name="country"
id={id}
className="ui__"
defaultValue={value ? (value as string).slice(1, -1) : undefined}
defaultValue={value ? (value as string).slice(1, -1) : ''}
onChange={(e) => onChange(`'${e.target.value}'`)}
>
<option disabled selected hidden></option>
<option disabled hidden></option>
{STATES.map((state) => (
<option key={state} value={state}>
{state}