Skip to content

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

Fix check for active free projects in billing

Joshen Lim7c4adfa6ae5d
diff --git a/studio/pages/project/[ref]/settings/billing/update/index.tsx b/studio/pages/project/[ref]/settings/billing/update/index.tsx
index 00d87ab74e0..c39fe993a65 100644
--- a/studio/pages/project/[ref]/settings/billing/update/index.tsx
+++ b/studio/pages/project/[ref]/settings/billing/update/index.tsx
@@ -25,7 +25,7 @@ const BillingUpdate: NextPageWithLayout = () => {
const subscriptionStats = useSubscriptionStats()
const freeProjectsLimit = ui?.profile?.free_project_limit ?? DEFAULT_FREE_PROJECTS_LIMIT
- const freeProjectsOwned = subscriptionStats.total_free_projects ?? 0
+ const freeProjectsOwned = subscriptionStats.total_active_free_projects ?? 0
const [isLoadingProducts, setIsLoadingProducts] = useState(false)
const [showConfirmDowngrade, setShowConfirmDowngrade] = useState(false)