Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 795e43a commit ff34dd3Copy full SHA for ff34dd3
apps/web/app/(org)/dashboard/layout.tsx
@@ -57,10 +57,10 @@ export default async function DashboardLayout({
57
activeOrganization = organizationSelect[0];
58
}
59
60
- const isSubscribed = true;
61
- // (user.stripeSubscriptionId &&
62
- // user.stripeSubscriptionStatus !== "cancelled") ||
63
- // !!user.thirdPartyStripeSubscriptionId;
+ const isSubscribed =
+ (user.stripeSubscriptionId &&
+ user.stripeSubscriptionStatus !== "cancelled") ||
+ !!user.thirdPartyStripeSubscriptionId;
64
65
const theme = cookies().get("theme")?.value ?? "light";
66
const sidebar = cookies().get("sidebarCollapsed")?.value ?? "false";
0 commit comments