The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Present use card option only if paid org subscription
Joshen Lim1a57ebf15e80
diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsxindex 04b69f49827..0d7ab794e3b 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx@@ -32,6 +32,7 @@ const PaymentMethods = () => {const [showAddPaymentMethodModal, setShowAddPaymentMethodModal] = useState(false)const { data: subscription } = useOrgSubscriptionQuery({ orgSlug: slug })+ console.log(subscription)const {data: paymentMethods,error,@@ -143,13 +144,17 @@ const PaymentMethods = () => {size="tiny"align="end"overlay={[- <Dropdown.Item- key="make-default"- onClick={() => setSelectedMethodForUse(paymentMethod)}- >- Use this card- </Dropdown.Item>,- <Dropdown.Separator key="card-separator" />,+ ...(subscription?.plan.id !== 'free'+ ? [+ <Dropdown.Item+ key="make-default"+ onClick={() => setSelectedMethodForUse(paymentMethod)}+ >+ Use this card+ </Dropdown.Item>,+ <Dropdown.Separator key="card-separator" />,+ ]+ : []),<Dropdown.Itemkey="delete-method"onClick={() => setSelectedMethodToDelete(paymentMethod)}