This commit is contained in:
Kenneth Jannette
2024-01-19 17:50:10 -06:00
parent 46b021c429
commit ac7cc4a079

View File

@@ -54,6 +54,13 @@ const SignupPage = () => {
return hasErrors ? null : objectMap(({ value }) => value, newData);
};
const validatePaymentData = () => {
const newPaymentData = ""; // getValidatedFormData(data, signupfields);
const hasErrors = isFormDataHasErrors(newPaymentData);
setPaymentData(newPaymentData);
return hasErrors ? null : objectMap(({ value }) => value, newPaymentData);
};
async function saveUserData(authId, dataValues) {
const appUserId = uuidv4();
const firmId = uuidv4();
@@ -102,11 +109,13 @@ const SignupPage = () => {
if (isBusy) {
return;
}
/*
const dataValues = validateData();
if (dataValues === null) {
return;
}
showPaymentModal(true);
*/
setShowPaymentModal(true);
};
const handleSignUp = async (e) => {