diff --git a/app/views/insured/plan_shoppings/thankyou.html.erb b/app/views/insured/plan_shoppings/thankyou.html.erb index c17e7f738e3..401e49bc571 100644 --- a/app/views/insured/plan_shoppings/thankyou.html.erb +++ b/app/views/insured/plan_shoppings/thankyou.html.erb @@ -32,11 +32,11 @@
<%= l10n('insured.plan_shoppings.thankyou.total_credit') %>:
<%= number_to_currency(@max_aptc, precision: 2) %>
<%= l10n('insured.plan_shoppings.thankyou.max_credit') %>:
- <% per_plan_max = @plan.total_premium > @max_aptc ? @max_aptc : @plan.total_aptc_amount %> -
<%= number_to_currency(per_plan_max) %>
+ <% max_credit = @plan.total_premium > @max_aptc ? @max_aptc : @plan.total_aptc_amount %> +
<%= number_to_currency(max_credit) %>

<%= l10n("insured.plan_shoppings.thankyou.aptc_instructions") %>

- <%= hidden_field_tag :max_aptc, @max_aptc %> + <%= hidden_field_tag :max_aptc, max_credit %> <%= hidden_field_tag :plan, @plan.id %> <%= hidden_field_tag :enrollment, @enrollment.id %> <%= hidden_field_tag :market_kind, @market_kind %> @@ -46,20 +46,20 @@
<% min_aptc = is_ivl_osse_filter_eligible ? minimum_applied_aptc_pct_for_osse : 0 %> <% step = is_ivl_osse_filter_eligible ? 1 : 1 %> - <% pct = @max_aptc > 0 ? (@elected_aptc/@max_aptc).round(2) : 0 %> + <% pct = max_credit > 0 ? (@elected_aptc/max_credit).round(2) : 0 %>
- +
-

<%= pct * 100 %><%= l10n('insured.plan_shoppings.thankyou.aptc_numbers_1') %><%= number_with_precision(@elected_aptc, precision: 2) %><%= l10n('insured.plan_shoppings.thankyou.aptc_numbers_2') %> <%= h(link_to l10n("how_is_this_calculated") + "?", "", data: {toggle: "modal", target: "#how_is_this_calculated"}) %>

+

<%= pct * 100 %><%= l10n('insured.plan_shoppings.thankyou.aptc_numbers_1') %><%= number_with_precision(max_credit, precision: 2) %><%= l10n('insured.plan_shoppings.thankyou.aptc_numbers_2') %> <%= h(link_to l10n("how_is_this_calculated") + "?", "", data: {toggle: "modal", target: "#how_is_this_calculated"}) %>

<% end %>