Skip to content

Commit

Permalink
hide addon from billing page
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelmsmith committed Mar 29, 2024
1 parent 205376b commit a5a27d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/scenes/billing/BillingProduct.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,11 @@ export const BillingProduct = ({ product }: { product: BillingProductV2Type }):
<div className="pb-8">
<h4 className="my-4">Addons</h4>
<div className="gap-y-4 flex flex-col">
{product.addons.map((addon, i) => {
return <BillingProductAddon key={i} addon={addon} />
})}
{product.addons
.filter((addon) => !addon.inclusion_only)
.map((addon, i) => {
return <BillingProductAddon key={i} addon={addon} />
})}
</div>
</div>
)}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,8 @@ export interface BillingProductV2AddonType {
subscribed: boolean
// sometimes addons are included with the base product, but they aren't subscribed individually
included_with_main_product?: boolean
inclusion_only: boolean | null
included_if: 'no_active_parent_subscription' | 'has_parent_subscription' | null
contact_support: boolean | null
unit: string | null
unit_amount_usd: string | null
Expand Down

0 comments on commit a5a27d5

Please sign in to comment.