Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

revert changes

Jonathan Summers-Muir4b8cd688f6f3
diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsx
index ec52ae957c3..651ceebbf81 100644
--- a/studio/pages/new/[slug].tsx
+++ b/studio/pages/new/[slug].tsx
@@ -83,15 +83,15 @@ export const Wizard = observer(() => {
const isEmptyPaymentMethod = stripeCustomer
? stripeCustomer.paymentMethods?.data?.length <= 0
: undefined
- const isOverFreeProjectLimit = false //totalFreeProjects >= freeProjectsLimit
+ const isOverFreeProjectLimit = totalFreeProjects >= freeProjectsLimit
const isInvalidSlug = isUndefined(currentOrg)
const isSelectFreeTier = dbPricingPlan === PRICING_PLANS.FREE
- const canCreateProject = true
- // currentOrg?.is_owner &&
- // !subscriptionStats.isError &&
- // !subscriptionStats.isLoading &&
- // (!isSelectFreeTier || (isSelectFreeTier && !isOverFreeProjectLimit))
+ const canCreateProject =
+ currentOrg?.is_owner &&
+ !subscriptionStats.isError &&
+ !subscriptionStats.isLoading &&
+ (!isSelectFreeTier || (isSelectFreeTier && !isOverFreeProjectLimit))
const canSubmit =
projectName != '' &&