Skip to content

Commit

Permalink
fix: add message (#214)
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Tagliabue <[email protected]>
  • Loading branch information
lucataglia and Luca Tagliabue authored Dec 18, 2024
1 parent 7825455 commit a2086ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Name() {

function ModelType() {
const { useFormbit } = useModalContext();
const { form, write } = useFormbit;
const { form, write, error } = useFormbit;

const handleOnChange = (value) => {
write('modelType', value);
Expand All @@ -54,7 +54,7 @@ function ModelType() {
];

return (
<FormField label="Model type" modifier="w-full" required>
<FormField label="Model type" message={error('modelType')} modifier="w-full" required>
<Select onChange={handleOnChange} value={form.modelType}>
{Object.values(modelTypeSelections).map((value) => (
<Select.Option key={value}>
Expand Down

0 comments on commit a2086ba

Please sign in to comment.