more
This commit is contained in:
@@ -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
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user