The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: only show missing billing info banner if billing enabled (#39121)
Charis3db57c566288
diff --git a/apps/studio/hooks/misc/useOrganizationRestrictions.ts b/apps/studio/hooks/misc/useOrganizationRestrictions.tsindex 4a1cdf82e06..6c34066235b 100644--- a/apps/studio/hooks/misc/useOrganizationRestrictions.ts+++ b/apps/studio/hooks/misc/useOrganizationRestrictions.ts@@ -6,6 +6,7 @@ import { useOrganizationsQuery } from 'data/organizations/organizations-query'import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'import { useBillingCustomerDataForm } from 'components/interfaces/Organization/BillingSettings/BillingCustomerData/useBillingCustomerDataForm'import { useOrganizationCustomerProfileQuery } from 'data/organizations/organization-customer-profile-query'+import { useIsFeatureEnabled } from './useIsFeatureEnabled'export type WarningBannerProps = {type: 'danger' | 'warning' | 'note'@@ -23,6 +24,11 @@ export function useOrganizationRestrictions() {const warnings: WarningBannerProps[] = []+ const billingEnabled = useIsFeatureEnabled('billing:all')+ if (!billingEnabled) {+ return { warnings, org }+ }+const overdueInvoicesFromOtherOrgs = overdueInvoices?.filter((invoice) => invoice.organization_id !== org?.id)