From c71afd167c24cacd35e23ab89c9af7f15b5b4bce Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Fri, 2 Sep 2022 17:04:31 +0100 Subject: [PATCH] Check if check_answers_card_number is present (#859) --- .../check_answers_summary_list_card_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/check_answers_summary_list_card_component.html.erb b/app/components/check_answers_summary_list_card_component.html.erb index adf1364c8..73e9335c8 100644 --- a/app/components/check_answers_summary_list_card_component.html.erb +++ b/app/components/check_answers_summary_list_card_component.html.erb @@ -1,5 +1,5 @@
- <% if applicable_questions.first.check_answers_card_number != 0 %> + <% if applicable_questions.first.check_answers_card_number != 0 && applicable_questions.first.check_answers_card_number.present? %>
<% if applicable_questions.first.check_answers_card_number == 1 %>

Lead tenant