Fix error with select initial state
This commit is contained in:
parent
b3f7ba9b1a
commit
e97fc985e2
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue