Skip to content

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

Add some logs to debug

Joshen Lim5f87a664695d
diff --git a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx
index 2f0d337e9e0..8954f2c0dfe 100644
--- a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx
+++ b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx
@@ -50,11 +50,12 @@ const PaymentSummaryPanel: FC<Props> = ({
const { ui } = useStore()
const projectRegion = ui.selectedProject?.region
+ console.log('PaymentSummaryPanel', currentComputeSize, selectedComputeSize)
+
const isChangingPlan =
(currentPlan.prod_id !== STRIPE_PRODUCT_IDS.PAYG && currentPlan.prod_id !== selectedPlan?.id) ||
(currentPlan.prod_id !== STRIPE_PRODUCT_IDS.PAYG && !isSpendCapEnabled) ||
(currentPlan.prod_id === STRIPE_PRODUCT_IDS.PAYG && isSpendCapEnabled)
- console.log('PaymentSummaryPanel', currentComputeSize, selectedComputeSize)
const isChangingComputeSize = currentComputeSize.id !== selectedComputeSize.id
const hasChangesToPlan = subscriptionPreview?.has_changes ?? false