Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
justkahdri committed Jan 3, 2025
1 parent 0ab4261 commit d2deed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/basehub/src/events/primitive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export function parseFormData<
case "select":
case "radio": {
const stringValue = String(value);
if (field.options && !field.options.includes(stringValue)) {
if (field.options.length && !field.options.includes(stringValue)) {
errors[key] = `${
field.label || key
} must be one of the available options`;
Expand Down

0 comments on commit d2deed3

Please sign in to comment.