more
This commit is contained in:
@@ -84,6 +84,11 @@ export const getValidatedFormData = (data, fields) =>
|
||||
}, data);
|
||||
|
||||
export const handleFormDataChange = (e, name, data, fields) => {
|
||||
console.log("fields", fields);
|
||||
if (!fields) {
|
||||
return;
|
||||
}
|
||||
|
||||
const value =
|
||||
(typeof e?.target?.value === "undefined" ? e.value : e.target.value) || "";
|
||||
const field = fields[name];
|
||||
|
||||
Reference in New Issue
Block a user