This commit is contained in:
Kenneth Jannette
2024-01-25 13:01:16 -06:00
parent 6339962779
commit 9dff4abd04

View File

@@ -154,7 +154,11 @@ const SignupPage = () => {
}
const handleChangeRadioInput = (e, name) => {
console.log("e, name", e, name);
console.log("name", name.label);
return;
if (!name) {
return;
}
const newData = handleFormDataChange(e, name, data, signupRadioFields);
if (newData !== null) {
setData(newData);
@@ -261,7 +265,7 @@ const SignupPage = () => {
}
setIsBusy(true);
console.log("paymentDataValues, dataValues", paymentDataValues, dataValues);
if (paymentDataValues && dataValues) {
try {
const userCredential = await createUserWithEmailAndPassword(
@@ -403,11 +407,11 @@ const SignupPage = () => {
{signupRadioFields?.map((group, i) => (
<div className="signup-radio-wrapper">
<Radiogroup
title="Client position"
title=""
options={group}
value={group[i].value}
disabled={isBusy}
onClick={(e) => handleChangeRadioInput(e, group[i].name)}
onClick={(e) => handleChangeRadioInput(e, group[i])}
/>
</div>
))}