Skip to content

Commit

Permalink
Move unless to the partial as it was returning an empty paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-stefano committed Jun 28, 2024
1 parent 83b1daf commit 3e4ca06
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions app/components/a_level_row_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
</p>
<% end %>

<p class="govuk-body">
<%= pending_a_level_summary_content %>
</p>
<% unless @course.accept_pending_a_level.nil? %>
<p class="govuk-body">
<%= pending_a_level_summary_content %>
</p>
<% end %>

<p class="govuk-body">
<%= a_level_equivalency_summary_content %>
</p>
<% unless @course.accept_a_level_equivalency.nil? %>
<p class="govuk-body">
<%= a_level_equivalency_summary_content %>
</p>
<% end %>

<% if @course.accept_a_level_equivalency? && @course.additional_a_level_equivalencies.present? %>
<p class="govuk-body">
Expand Down

0 comments on commit 3e4ca06

Please sign in to comment.