diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 9d6457e..0da275b 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -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) => {