diff --git a/packages/vee-validate/src/useFormErrors.ts b/packages/vee-validate/src/useFormErrors.ts index 19c7c7ba7..d2808e23c 100644 --- a/packages/vee-validate/src/useFormErrors.ts +++ b/packages/vee-validate/src/useFormErrors.ts @@ -6,10 +6,7 @@ import { injectWithSelf } from './utils'; * Gives access to all form errors */ export function useFormErrors() { - const errors = injectWithSelf( - FormErrorsSymbol, - computed(() => ({})) - ); + const errors = injectWithSelf(FormErrorsSymbol); - return errors; + return errors || computed(() => ({})); }