This commit is contained in:
Kenneth Jannette
2024-02-16 20:36:45 -06:00
parent dde241db26
commit c0ba0c6dfd

View File

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