We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97abf10 commit 0c08c17Copy full SHA for 0c08c17
1 file changed
src/index.ts
@@ -22,9 +22,6 @@ export const useValidation = <T, K extends keyof T>(validationClass: Newable<T>)
22
const validateCallback: ValidationFunction<T, K> = async (payload, filter: K[] = []) => {
23
24
let errors = await validate(Object.assign(new (validationClass as any)(), payload));
25
-
26
- console.dir(errors);
27
28
if (errors.length === 0) {
29
30
setErrors({});
0 commit comments