major bug fixed

This commit is contained in:
Daniel
2023-08-03 14:03:06 -04:00
parent ffb1098a15
commit 1bb1d8140d
2 changed files with 14 additions and 12 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ export default function useInitialData() {
const { setAccount } = useAccountStore();
useEffect(() => {
if (status === "authenticated" && data.user.isSubscriber) {
if (
status === "authenticated" &&
(!process.env.NEXT_PUBLIC_STRIPE_IS_ACTIVE || data.user.isSubscriber)
) {
setCollections();
setTags();
// setLinks();