Skip to content

Commit d36aa5e

Browse files
genulogaretm
authored andcommitted
chore: fix typo
1 parent 25574c9 commit d36aa5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/useFormField/useFormField.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type WithFieldProps<TControlProps extends object> = Simplify<
3939

4040
export function useFormField<TValue = unknown>(
4141
init?: FormFieldInit<TValue>,
42-
constrolType: string = 'Field',
42+
controlType: string = 'Field',
4343
): FormField<TValue> {
4444
const controllerProps = normalizeProps(init ?? { label: '' });
4545
const state = useFieldState<TValue>(init);
@@ -49,7 +49,7 @@ export function useFormField<TValue = unknown>(
4949
});
5050

5151
if (__DEV__) {
52-
registerField(state, controller.controlType ?? constrolType);
52+
registerField(state, controller.controlType ?? controlType);
5353
}
5454

5555
return {

0 commit comments

Comments
 (0)