diff --git a/lib/create-form.js b/lib/create-form.js index b88c069..2e9947a 100644 --- a/lib/create-form.js +++ b/lib/create-form.js @@ -151,7 +151,7 @@ export const createForm = (config) => { if (yupErrors && yupErrors.inner) { const updatedErrors = getInitial.errors(); - yupErrors.inner.map((error) => + yupErrors.inner.reverse().map((error) => util.set(updatedErrors, error.path, error.message), );