Skip to content

Commit

Permalink
fix: fix support for decimals with . in it
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout committed Jul 31, 2021
1 parent 13180cb commit a0f90c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/useFormState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default function useFormState<T>(
setError: <K extends keyof T>(
key: K,
value: boolean | string | undefined
) => void;
) => void;
clearErrors: () => void;
submit: () => void;
formProps: {
Expand Down Expand Up @@ -276,8 +276,7 @@ export default function useFormState<T>(
},
[errorsRef, sErrors]
);



const clearErrors = React.useCallback(() => {
sErrors({});
}, []);
Expand Down

0 comments on commit a0f90c1

Please sign in to comment.