There was an error while loading. Please reload this page.
1 parent 319f650 commit 74e5330Copy full SHA for 74e5330
1 file changed
src/src/isomorphic/core/hooks/use-form/main.ts
@@ -35,7 +35,7 @@ export function useForm<SchemaType extends ZodObject>({
35
36
const handleSubmit = useCallback(
37
async (values: UseFormValues<SchemaType>) => {
38
- if (!onSubmit) return;
+ if (submitting || !onSubmit) return;
39
40
setSubmitting(true);
41
@@ -58,6 +58,7 @@ export function useForm<SchemaType extends ZodObject>({
58
form.setInitialValues,
59
localization.localize,
60
onSubmit,
61
+ submitting,
62
],
63
);
64
0 commit comments