Skip to content

Commit

Permalink
fix: filter out the enterprise plan (#9549)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield authored Oct 4, 2024
1 parent 41d00a3 commit a31a5bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Pricing/Platform/usePlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ export const usePlatform = () => {
},
} = useStaticQuery(allProductsData)

return billingProducts.find((product) => product.type === 'platform_and_support')
const product = billingProducts.find((product) => product.type === 'platform_and_support')

// Note(@zach): Filter out the enterprise add-on until we are ready to show it
const addons = product?.addons.filter((addon) => addon.name !== 'Enterprise')
product.addons = addons

return product
}

0 comments on commit a31a5bc

Please sign in to comment.