Skip to content

Commit

Permalink
don't duplicate logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinmerbach committed Aug 11, 2024
1 parent 942518e commit a9dabb4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/views/insured/plan_shoppings/_plan_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@
<div class="col-md-2">
<div class="price-wrapper text-right">
<strong class="text-secondary"><%= l10n("premium") %></strong>
<% if session[:elected_aptc] && session[:elected_aptc] != 0 %>
<p class="bold beta m-0"><%= number_to_currency(premium) %></p>
<% else %>
<p class="bold beta m-0"><%= number_to_currency(plan.total_employee_cost - plan.total_childcare_subsidy_amount) %></p>
<% end %>
<p class="bold beta m-0"><%= number_to_currency(premium) %></p>
<small class="weight-n">per <%= l10n("month") %></small>
</div>
</div>
Expand Down

0 comments on commit a9dabb4

Please sign in to comment.