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.
2 parents 82015b2 + 13d1d97 commit 13105d0Copy full SHA for 13105d0
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