diff --git a/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx b/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx index 0e3bc5cd8a5..95460d569d8 100644 --- a/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx +++ b/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx @@ -1,5 +1,6 @@ import { FC } from 'react' import { Radio } from '@supabase/ui' +import { getProductPrice } from '../Billing.utils' interface Props { computeSizes: any[] @@ -18,12 +19,7 @@ const ComputeSizeSelection: FC = ({ computeSizes, selectedComputeSize, on {computeSizes.map((option: any) => { - const defaultPriceId = option.metadata.default_price_id - const price = - defaultPriceId !== undefined - ? option.prices.find((price: any) => price.id === defaultPriceId).unit_amount - : option.prices[0].unit_amount - + const defaultPrice = getProductPrice(option) return (