Skip to content

Commit

Permalink
fix: forgot adding errors in useValidationForm
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 24, 2021
1 parent b439a73 commit d032d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vee-validate/src/useValidateForm.ts
Expand Up @@ -13,7 +13,7 @@ export function useValidateForm<TValues extends Record<string, unknown> = Record

return function validateField(): Promise<FormValidationResult<TValues>> {
if (!form) {
return Promise.resolve({ results: {}, valid: true });
return Promise.resolve({ results: {}, errors: {}, valid: true });
}

return form.validate();
Expand Down

0 comments on commit d032d3b

Please sign in to comment.