From 32b701d0532ac728a24bc3150fee1d0c76a1cb12 Mon Sep 17 00:00:00 2001 From: Dushan Despotovic Date: Fri, 19 Aug 2022 09:31:29 +0100 Subject: [PATCH] update check for summary card in check answers --- app/views/form/check_answers.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/form/check_answers.html.erb b/app/views/form/check_answers.html.erb index 3e8dd5815..c2e280f5a 100644 --- a/app/views/form/check_answers.html.erb +++ b/app/views/form/check_answers.html.erb @@ -17,7 +17,7 @@ <% end %> <%= display_answered_questions_summary(subsection, @case_log, current_user) %> - <% if subsection.id == "household_characteristics" %> + <% if subsection.applicable_questions(@case_log).map(&:check_answers_card_number).compact.length > 0 %> <% subsection.applicable_questions(@case_log).group_by(&:check_answers_card_number).values.each do |question_group| %> <%= render CheckAnswersSummaryListCardComponent.new(questions: question_group, case_log: @case_log, user: current_user) %> <% end %>