Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class FormStore {
if (process.env.NODE_ENV !== 'production' && !this.formHooked) {
warning(
false,
'Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?',
'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?',
);
}
};
Expand Down
2 changes: 1 addition & 1 deletion tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ describe('Form.Basic', () => {
mount(<Test />);

expect(errorSpy).toHaveBeenCalledWith(
'Warning: Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?',
'Warning: Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?',
);
errorSpy.mockRestore();
});
Expand Down