@pelcro/react-pelcro-js 3.26.0-beta.19 → 3.26.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11869,12 +11869,12 @@ const initPaywalls = () => {
|
|
|
11869
11869
|
switchView("plan-select");
|
|
11870
11870
|
}
|
|
11871
11871
|
}
|
|
11872
|
-
if (isAuthenticated()) {
|
|
11872
|
+
if ("id" in Pelcro.user.read() || !isAuthenticated()) {
|
|
11873
|
+
displayPaywalls();
|
|
11874
|
+
} else {
|
|
11873
11875
|
addEventListener("PelcroUserLoaded", function () {
|
|
11874
11876
|
displayPaywalls();
|
|
11875
11877
|
}, true);
|
|
11876
|
-
} else {
|
|
11877
|
-
displayPaywalls();
|
|
11878
11878
|
}
|
|
11879
11879
|
}
|
|
11880
11880
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -11839,12 +11839,12 @@ const initPaywalls = () => {
|
|
|
11839
11839
|
switchView("plan-select");
|
|
11840
11840
|
}
|
|
11841
11841
|
}
|
|
11842
|
-
if (isAuthenticated()) {
|
|
11842
|
+
if ("id" in Pelcro.user.read() || !isAuthenticated()) {
|
|
11843
|
+
displayPaywalls();
|
|
11844
|
+
} else {
|
|
11843
11845
|
addEventListener("PelcroUserLoaded", function () {
|
|
11844
11846
|
displayPaywalls();
|
|
11845
11847
|
}, true);
|
|
11846
|
-
} else {
|
|
11847
|
-
displayPaywalls();
|
|
11848
11848
|
}
|
|
11849
11849
|
}
|
|
11850
11850
|
};
|