Skip to content

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

Check value exists for isFreePlan var

Pamela Chia871fe4e1bc5b
diff --git a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
index 789358ffa73..2184fae4048 100644
--- a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
+++ b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
@@ -27,7 +27,7 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {
const { project } = useProjectContext()
const orgSlug = selectedOrganization?.slug
const { data: subscription } = useProjectSubscriptionV2Query({ projectRef: ref })
- const isFreePlan = subscription?.plan.id === 'free'
+ const isFreePlan = subscription?.plan?.id === 'free'
const { data: membersExceededLimit } = useFreeProjectLimitCheckQuery({ slug: orgSlug })
const hasMembersExceedingFreeTierLimit = (membersExceededLimit || []).length > 0