@@ -156,23 +156,17 @@ const SignupPage = () => {
|
||||
authId,
|
||||
dataValues,
|
||||
customerId,
|
||||
subscriptionId,
|
||||
subscriptionCreated,
|
||||
subscriptionPeriodStart,
|
||||
subscriptionPeriodEnd
|
||||
subscriptionPeriodEnd,
|
||||
subscriptionId
|
||||
) {
|
||||
const appUserId = uuidv4();
|
||||
const firmId = uuidv4();
|
||||
const fbAuthUid = authId;
|
||||
const plan = selectedPlan;
|
||||
const docsAllowed =
|
||||
plan === "associate"
|
||||
? 1
|
||||
: plan === "partner"
|
||||
? 3
|
||||
: plan === "unlimited"
|
||||
? 4000
|
||||
: 0;
|
||||
const docsAllowedPerMonth = selectedPlan[0].docsAllowedPerMonth;
|
||||
|
||||
const docsGenerated = 0;
|
||||
|
||||
const {
|
||||
@@ -194,7 +188,7 @@ const SignupPage = () => {
|
||||
});
|
||||
|
||||
const userData = {
|
||||
docsAllowed,
|
||||
docsAllowedPerMonth,
|
||||
docsGenerated,
|
||||
appUserId,
|
||||
fbAuthUid,
|
||||
@@ -370,12 +364,6 @@ const SignupPage = () => {
|
||||
|
||||
const user = userCredential.user;
|
||||
dataValues = { ...dataValues, ...data };
|
||||
console.log(
|
||||
"customerId, subscriptionId subscriptionCreated, in handleSignup right before saveUserData",
|
||||
customerId,
|
||||
subscriptionId,
|
||||
subscriptionCreated
|
||||
);
|
||||
await saveUserData(
|
||||
user.uid,
|
||||
dataValues,
|
||||
|
||||
@@ -11,6 +11,7 @@ export const signupRadioFields = [
|
||||
"First month free!",
|
||||
],
|
||||
details: "",
|
||||
docsAllowedPerMonth: 1,
|
||||
pricing: [
|
||||
{ type: "monthly", amount: 69 },
|
||||
{ type: "annDiscount", amount: 52 },
|
||||
@@ -29,6 +30,7 @@ export const signupRadioFields = [
|
||||
"24/7 support",
|
||||
],
|
||||
details: "",
|
||||
docsAllowedPerMonth: 3,
|
||||
pricing: [
|
||||
{ type: "monthly", amount: 99 },
|
||||
{ type: "annDiscount", amount: 89 },
|
||||
@@ -46,6 +48,7 @@ export const signupRadioFields = [
|
||||
"Up to 8 additional accounts at $39/each",
|
||||
],
|
||||
details: "",
|
||||
docsAllowedPerMonth: 50000,
|
||||
pricing: [
|
||||
{ type: "monthly", amount: 149 },
|
||||
{ type: "annDiscount", amount: 129 },
|
||||
|
||||
Reference in New Issue
Block a user