Fix error with select initial state

This commit is contained in:
garronej 2023-06-19 03:12:13 +02:00
parent b3f7ba9b1a
commit e97fc985e2

View file

@ -98,11 +98,14 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
} }
value={value} value={value}
> >
{options.options.map(option => ( <>
<option key={option} value={option}> <option value="" selected disabled hidden>Select an option</option>
{option} {options.options.map(option => (
</option> <option key={option} value={option}>
))} {option}
</option>
))}
</>
</select> </select>
); );
} }