mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
TS error
This commit is contained in:
1 parent
8635e897f1
commit
bfa418f279
1 file changed
+2
-2
@@ -17,13 +17,13 @@ const parsePrice = (price: string) => parseInt(price?.toString().replace('$', ''
|
||||
|
||||
interface ComputePricingCalculatorProps {
|
||||
disableInteractivity?: boolean
|
||||
activePlan: {
|
||||
activePlan?: {
|
||||
name: string
|
||||
price: number
|
||||
}
|
||||
}
|
||||
|
||||
const ComputePricingCalculator = ({ disableInteractivity, activePlan }: ComputePricingCalculatorProps) => {
|
||||
const ComputePricingCalculator = ({ disableInteractivity, activePlan = { name: 'Pro', price: 25 } }: ComputePricingCalculatorProps) => {
|
||||
// Filter out rows with no specific pricing
|
||||
const computeInstances = pricingAddOn.database.rows.filter((row) =>
|
||||
row.columns.some((it) => it.key === 'pricing' && it.value !== 'Contact Us')
|
||||
|
||||
Reference in new issue
Block a user