@@ -179,7 +179,7 @@ const SignupPage = () => {
|
|||||||
let plan = selectedPlan;
|
let plan = selectedPlan;
|
||||||
let docsAllowedPerMonth;
|
let docsAllowedPerMonth;
|
||||||
|
|
||||||
if (isPromotionalMebership == true) {
|
if (isPromotionalMebership === true) {
|
||||||
docsAllowedPerMonth = 1;
|
docsAllowedPerMonth = 1;
|
||||||
subscriptionId = uuidv4();
|
subscriptionId = uuidv4();
|
||||||
plan = "promo plan";
|
plan = "promo plan";
|
||||||
@@ -404,6 +404,7 @@ const SignupPage = () => {
|
|||||||
|
|
||||||
const user = userCredential.user;
|
const user = userCredential.user;
|
||||||
dataValues = { ...dataValues, ...data };
|
dataValues = { ...dataValues, ...data };
|
||||||
|
const isPromotionalMebership = false;
|
||||||
const res = await saveUserData(
|
const res = await saveUserData(
|
||||||
user.uid,
|
user.uid,
|
||||||
dataValues,
|
dataValues,
|
||||||
@@ -411,7 +412,8 @@ const SignupPage = () => {
|
|||||||
subscriptionCreated,
|
subscriptionCreated,
|
||||||
subscriptionPeriodStart,
|
subscriptionPeriodStart,
|
||||||
subscriptionPeriodEnd,
|
subscriptionPeriodEnd,
|
||||||
subscriptionId
|
subscriptionId,
|
||||||
|
isPromotionalMebership
|
||||||
);
|
);
|
||||||
|
|
||||||
setIsBusy(false);
|
setIsBusy(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user