Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff34dd3

Browse files
committed
oops
1 parent 795e43a commit ff34dd3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/web/app/(org)/dashboard/layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export default async function DashboardLayout({
5757
activeOrganization = organizationSelect[0];
5858
}
5959

60-
const isSubscribed = true;
61-
// (user.stripeSubscriptionId &&
62-
// user.stripeSubscriptionStatus !== "cancelled") ||
63-
// !!user.thirdPartyStripeSubscriptionId;
60+
const isSubscribed =
61+
(user.stripeSubscriptionId &&
62+
user.stripeSubscriptionStatus !== "cancelled") ||
63+
!!user.thirdPartyStripeSubscriptionId;
6464

6565
const theme = cookies().get("theme")?.value ?? "light";
6666
const sidebar = cookies().get("sidebarCollapsed")?.value ?? "false";

0 commit comments

Comments
 (0)