billing: Remove buggy i18n check.

This commit is contained in:
Tim Abbott 2024-01-22 23:03:25 -08:00
parent 004563b380
commit cbb83b214f
1 changed files with 1 additions and 3 deletions

View File

@ -2080,9 +2080,7 @@ class BillingSession(ABC):
if customer is not None and customer_has_credit_card_as_default_payment_method(customer): if customer is not None and customer_has_credit_card_as_default_payment_method(customer):
assert customer.stripe_customer_id is not None assert customer.stripe_customer_id is not None
stripe_customer = stripe_get_customer(customer.stripe_customer_id) stripe_customer = stripe_get_customer(customer.stripe_customer_id)
payment_method = payment_method_string(stripe_customer) current_payment_method = payment_method_string(stripe_customer)
# Show "Update card" button if user has already added a card.
current_payment_method = None if "ending in" not in payment_method else payment_method
tier = initial_upgrade_request.tier tier = initial_upgrade_request.tier