We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82015b2 commit 13d1d97Copy full SHA for 13d1d97
src/use-form.js
@@ -184,7 +184,8 @@ export default function useNewForm(fieldConfig) {
184
);
185
setFormErrors(() => {
186
const errorWithoutMsg = {};
187
- Object.entries(errorFields).forEach(([fieldName, errorState]) => {
+ Object.keys(errorFields).forEach((fieldName) => {
188
+ const errorState = errorFields[fieldName];
189
errorWithoutMsg[fieldName] = {
190
isValid: errorState.isValid,
191
};
0 commit comments