From 3e4ca062af72d3ba55ecf8617d438963c2ae5599 Mon Sep 17 00:00:00 2001
From: Tomas D'Stefano
Date: Fri, 28 Jun 2024 14:44:07 +0100
Subject: [PATCH] Move unless to the partial as it was returning an empty
paragraph
---
app/components/a_level_row_component.html.erb | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/app/components/a_level_row_component.html.erb b/app/components/a_level_row_component.html.erb
index f4e910c95a..6a9c013405 100644
--- a/app/components/a_level_row_component.html.erb
+++ b/app/components/a_level_row_component.html.erb
@@ -6,13 +6,17 @@
<% end %>
-
- <%= pending_a_level_summary_content %>
-
+ <% unless @course.accept_pending_a_level.nil? %>
+
+ <%= pending_a_level_summary_content %>
+
+ <% end %>
-
- <%= a_level_equivalency_summary_content %>
-
+ <% unless @course.accept_a_level_equivalency.nil? %>
+
+ <%= a_level_equivalency_summary_content %>
+
+ <% end %>
<% if @course.accept_a_level_equivalency? && @course.additional_a_level_equivalencies.present? %>