This commit is contained in:
Kenneth Jannette
2024-01-21 15:12:59 -06:00
parent 9f8d195b52
commit d349c98fcc
2 changed files with 4 additions and 3 deletions

View File

@@ -96,8 +96,10 @@ export const handleFormDataChange = (e, name, data, fields) => {
return null;
};
export const isFormDataHasErrors = (data) =>
Object.values(data).reduce(
export const isFormDataHasErrors = (data) => {
console.log("data", data);
return Object.values(data).reduce(
(hasErrors, { error }) => hasErrors || error,
false
);
};