Skip to content

Commit ed6f0cf

Browse files
authored
Fix broken submission (#357)
1 parent 89d6356 commit ed6f0cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Form/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const Form = React.forwardRef(function Form(
4646
...prev,
4747
[field.name]: value,
4848
};
49-
onChange(newState);
49+
onChange?.(newState);
5050
return newState;
5151
});
5252
}

0 commit comments

Comments
 (0)