Skip to content

Commit

Permalink
fix: add message
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Tagliabue committed Dec 17, 2024
1 parent f3b750e commit 5e5cb95
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 @@ -53,7 +53,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 5e5cb95

Please sign in to comment.