more
This commit is contained in:
@@ -165,14 +165,8 @@ const SignupPage = () => {
|
|||||||
const firmId = uuidv4();
|
const firmId = uuidv4();
|
||||||
const fbAuthUid = authId;
|
const fbAuthUid = authId;
|
||||||
const plan = selectedPlan;
|
const plan = selectedPlan;
|
||||||
const docsAllowed =
|
const docsAllowedPerMonth = selectedPlan[0].docsAllowedPerMonth;
|
||||||
plan === "associate"
|
|
||||||
? 1
|
|
||||||
: plan === "partner"
|
|
||||||
? 3
|
|
||||||
: plan === "unlimited"
|
|
||||||
? 4000
|
|
||||||
: 0;
|
|
||||||
const docsGenerated = 0;
|
const docsGenerated = 0;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@@ -194,7 +188,7 @@ const SignupPage = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const userData = {
|
const userData = {
|
||||||
docsAllowed,
|
docsAllowedPerMonth,
|
||||||
docsGenerated,
|
docsGenerated,
|
||||||
appUserId,
|
appUserId,
|
||||||
fbAuthUid,
|
fbAuthUid,
|
||||||
@@ -370,12 +364,6 @@ const SignupPage = () => {
|
|||||||
|
|
||||||
const user = userCredential.user;
|
const user = userCredential.user;
|
||||||
dataValues = { ...dataValues, ...data };
|
dataValues = { ...dataValues, ...data };
|
||||||
console.log(
|
|
||||||
"customerId, subscriptionId subscriptionCreated, in handleSignup right before saveUserData",
|
|
||||||
customerId,
|
|
||||||
subscriptionId,
|
|
||||||
subscriptionCreated
|
|
||||||
);
|
|
||||||
await saveUserData(
|
await saveUserData(
|
||||||
user.uid,
|
user.uid,
|
||||||
dataValues,
|
dataValues,
|
||||||
|
|||||||
Reference in New Issue
Block a user