Skip to content

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

Fix wrong logic in isFree

Joshen Lim0b111e367913
diff --git a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
index 2640861ae54..b1f7f739336 100644
--- a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
+++ b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
@@ -25,7 +25,7 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {
const projectRef = project?.ref
const { data: subscription } = useProjectSubscriptionV2Query({ projectRef })
const projectPlan = subscription?.plan?.id ?? 'free'
- const isFree = projectPlan === PRICING_TIER_PRODUCT_IDS.FREE
+ const isFree = projectPlan === 'free'
const [isOpen, setIsOpen] = useState(false)
const [message, setMessage] = useState<string>('')