Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

corporate: Fix 'renewal_amount' always a truthy value on billing page.

Prakhar Pratyush18d19248236f
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 0b4a3a10ad4..b0093600876 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -2275,7 +2275,7 @@ class BillingSession(ABC):
"licenses_at_next_renewal": licenses_at_next_renewal,
"seat_count": seat_count,
"renewal_date": renewal_date,
- "renewal_amount": cents_to_dollar_string(renewal_cents),
+ "renewal_amount": cents_to_dollar_string(renewal_cents) if renewal_cents != 0 else None,
"payment_method": payment_method,
"charge_automatically": charge_automatically,
"stripe_email": stripe_email,