diff --git a/src/Components/Dashboard/Dashboard.js b/src/Components/Dashboard/Dashboard.js index 10f3790..38abb82 100644 --- a/src/Components/Dashboard/Dashboard.js +++ b/src/Components/Dashboard/Dashboard.js @@ -41,7 +41,9 @@ const Dashboard = () => { const appUserId = group ? group.appUserId : null; const _fbAuthUid = group ? group.fbAuthUid : null; const isDashboard = true; - + group && console.log("group.tpe", group?.tpe); + console.log("auth", auth); + console.log("appUserId", appUserId); useEffect(() => { if (count.current == null) { setIsMobile(window.innerWidth < 440); @@ -188,6 +190,10 @@ const Dashboard = () => { ) : null; }; + if (!group) { + return; + } + return ( <>
@@ -203,34 +209,6 @@ const Dashboard = () => {
{group.firm}
- {isPromoFirstLogin ? ( - <> -
-
-
-
-

- Welcome to Novodraft, attorney {group.lastName}. We are - excited to introduce you to our AI application. Review the - step-by-step user guide by clicking "How-to" in the above - navigation bar. -

-

- Your login is username: {group.email} with - a temporary password: {group.tpe}. You - should change your password now by{" "} - - clicking here. - -

-
-
-
-
- -
- - ) : null}
@@ -325,3 +303,34 @@ const Dashboard = () => { }; export default Dashboard; + +/* + {isPromoFirstLogin ? ( + <> +
+
+
+
+

+ Welcome to Novodraft, attorney {group.lastName}. We are + excited to introduce you to our AI application. Review the + step-by-step user guide by clicking "How-to" in the above + navigation bar. +

+

+ Your login is username: {group.email} with + a temporary password: {group.tpe}. You + should change your password now by{" "} + + clicking here. + +

+
+
+
+
+ +
+ + ) : null} + */ diff --git a/src/Components/Home/HomePageB.js b/src/Components/Home/HomePageB.js index feb8848..e5f6197 100644 --- a/src/Components/Home/HomePageB.js +++ b/src/Components/Home/HomePageB.js @@ -70,7 +70,7 @@ const HomePageB = () => { subscriptionPeriodEnd, subscriptionId, isPromotionalMebership = true, - docsAllowedPeMonth = 1 + docsAllowedPeMonth = 99999 ) { if (!email || !password || !dataValues[0]) { return; diff --git a/src/Components/Login/Login.js b/src/Components/Login/Login.js index dc92567..1914fe7 100644 --- a/src/Components/Login/Login.js +++ b/src/Components/Login/Login.js @@ -22,6 +22,7 @@ const Login = () => { setNotice(""); try { + console.log("auth, email, password", auth, email, password); const userCredential = await signInWithEmailAndPassword( auth, email, diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index d3168ec..b0db95e 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -404,6 +404,7 @@ const SignupPage = () => { // ******************** END STRIPE PAYMENT API CALL ******************** // const handleSignup = async (e) => { const paymentDataValues = validatePaymentData(); + if (paymentDataValues === null) { return; } @@ -412,7 +413,7 @@ const SignupPage = () => { if (dataValues === null) { return; } - + console.log("dataValues", dataValues); //const planType = determinePlan(isAnnual, activeRadioOption); if (paymentDataValues && dataValues) {