Skip to content

Commit

Permalink
Merge pull request #8693 from cfpb/tccp/fix-transfers
Browse files Browse the repository at this point in the history
TCCP: Fix cards with no balance transfer period
  • Loading branch information
niqjohnson authored Dec 18, 2024
2 parents 846bd92 + 6c7ff52 commit c48826b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions cfgov/tccp/jinja2/tccp/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,9 @@ <h2>
<div class="m-payment-calculation__part">
{% call data_section(
balance_transfer_apr_term ~
' for ' ~
(' for ' ~
'%.0f' | format(card.median_length_of_balance_transfer_apr) ~
' months'
' months' if card.median_length_of_balance_transfer_apr is not none)
) %}
{% if card.transfer_apr_min is not none
and card.transfer_apr_max is not none
Expand Down Expand Up @@ -766,9 +766,14 @@ <h2>
</p>
{% endif %}
<p>
After
{{ '%.0f' | format(card.median_length_of_balance_transfer_apr ) }}
months, any remaining unpaid balance on your account will be
{%- if card.median_length_of_balance_transfer_apr is not none -%}
After
{{ '%.0f' | format(card.median_length_of_balance_transfer_apr ) }}
months, a
{%- else -%}
A
{%- endif -%}
ny remaining unpaid balance on your account will be
subject to interest charges based on your purchase APR.
</p>
{% else %}
Expand Down

0 comments on commit c48826b

Please sign in to comment.