more
This commit is contained in:
@@ -180,7 +180,6 @@ const SignupPage = () => {
|
||||
<Row key={`row${j}`}>
|
||||
{names.map((name, i) => (
|
||||
<Col key={`${name}${i + fieldsChunkSize * j}`} className="mb-3">
|
||||
{console.log("data, name", data, name)}
|
||||
<TextInput
|
||||
name={name}
|
||||
value={data[name].value}
|
||||
|
||||
@@ -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