more
This commit is contained in:
@@ -147,6 +147,7 @@ const SignupPage = () => {
|
||||
}
|
||||
|
||||
async function saveUserData(authId, dataValues) {
|
||||
console.log("authId, dataValues", authId, dataValues);
|
||||
const appUserId = uuidv4();
|
||||
const firmId = uuidv4();
|
||||
const fbAuthUid = authId;
|
||||
@@ -245,7 +246,6 @@ const SignupPage = () => {
|
||||
paymentDataValues,
|
||||
customerDataValues
|
||||
) {
|
||||
console.log("======>numberOfAccountsToAdd", numberOfAccountsToAdd);
|
||||
const additionalAccounts = numberOfAccountsToAdd
|
||||
? numberOfAccountsToAdd
|
||||
: 0;
|
||||
@@ -309,45 +309,24 @@ const SignupPage = () => {
|
||||
}
|
||||
// ******************** END STRIPE PAY API CALL ******************** //
|
||||
|
||||
const handleSignup = async (totalDue) => {
|
||||
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>handleSignup fired");
|
||||
|
||||
const handleSignup = async () => {
|
||||
if (isBusy) {
|
||||
return;
|
||||
}
|
||||
const paymentDataValues = validatePaymentData();
|
||||
if (paymentDataValues === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* let dataValues = validateUserData();
|
||||
let dataValues = validateUserData();
|
||||
if (dataValues === null) {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
const id = uuidv4();
|
||||
const email = `${id}@jim.com`;
|
||||
let dataValues = {
|
||||
firstName: "fffff",
|
||||
lastName: "ffff",
|
||||
firm: "form",
|
||||
telephone: "(313) 333-3333",
|
||||
streetAddress: "123 main",
|
||||
city: "new york",
|
||||
state: "New York",
|
||||
zipCode: "10122",
|
||||
barNumber: "2343434",
|
||||
practiceArea: "3df",
|
||||
email: email,
|
||||
password: "stingPrug1",
|
||||
confirmPassword: "stingPrug1",
|
||||
};
|
||||
|
||||
const planType = determinePlan(isAnnual, activeRadioOption);
|
||||
console.log(planType);
|
||||
setIsBusy(true);
|
||||
|
||||
if (paymentDataValues && dataValues) {
|
||||
console.log(
|
||||
"tryblock ~~~ tryblock ~~~ tryblock ~~~ tryblock ~~~ tryblock ~~~ "
|
||||
);
|
||||
setIsBusy(true);
|
||||
try {
|
||||
const userCredential = await createUserWithEmailAndPassword(
|
||||
auth,
|
||||
@@ -362,7 +341,10 @@ const SignupPage = () => {
|
||||
paymentDataValues,
|
||||
dataValues
|
||||
);
|
||||
|
||||
console.log(
|
||||
"----------------------------->>>>paymentResponse",
|
||||
paymentResponse
|
||||
);
|
||||
if (paymentResponse === false) {
|
||||
setIsBusy(false);
|
||||
setNotice("Sorry, something went wrong. Please try again.");
|
||||
|
||||
Reference in New Issue
Block a user