Skip to content

Commit

Permalink
fix: Prevent Users from Setting Billing Limit when They Have 100% Dis…
Browse files Browse the repository at this point in the history
…count (#18172)

Prevent Users from Setting Billing Limit when They Have 100% Discount

Co-authored-by: Bianca Yang <[email protected]>
  • Loading branch information
xrdt and Bianca Yang authored Oct 24, 2023
1 parent dcaf31d commit 6af41b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/scenes/billing/BillingProduct.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ export const BillingProduct = ({ product }: { product: BillingProductV2Type }):
<LemonButton
fullWidth
status="stealth"
disabledReason={
billing?.discount_percent === 100
? "You can't set a billing limit with a 100% discount"
: null
}
tooltipPlacement="bottom"
onClick={() => setIsEditingBillingLimit(true)}
>
Set billing limit
Expand Down

0 comments on commit 6af41b1

Please sign in to comment.