Skip to content

Commit c6885c5

Browse files
committed
lint fixes
1 parent 2f9d0ab commit c6885c5

File tree

1 file changed

+8
-4
lines changed
  • client/src/components/formHelpers

1 file changed

+8
-4
lines changed

client/src/components/formHelpers/form.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,15 @@ function DynamicForm({
4747
submit(formatUrlValues(values, options), ...args);
4848
}}
4949
validate={(values: URLValues) => {
50-
const hasMissingRequiredFields = options.required?.some((field: string) => !values[field]);
50+
const hasMissingRequiredFields = options.required?.some(
51+
(field: string) => !values[field]
52+
);
5153

52-
return hasMissingRequiredFields ? {
53-
[FORM_ERROR]: hasMissingRequiredFields,
54-
} : undefined
54+
return hasMissingRequiredFields
55+
? {
56+
[FORM_ERROR]: hasMissingRequiredFields
57+
}
58+
: undefined;
5559
}}
5660
>
5761
{({ handleSubmit, pristine, error }) => (

0 commit comments

Comments
 (0)