mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
stripe: Set discount to None for 0 discount.
This commit is contained in:
@@ -100,7 +100,7 @@ def format_money(cents: float) -> str:
|
||||
|
||||
|
||||
def format_discount_percentage(discount: Optional[Decimal]) -> Optional[str]:
|
||||
if type(discount) is not Decimal:
|
||||
if type(discount) is not Decimal or discount == Decimal(0):
|
||||
return None
|
||||
|
||||
# Even though it looks like /activity/support only finds integers valid,
|
||||
|
||||
Reference in New Issue
Block a user