From c3912094dd78d6a5b24a53bad7c6a58b71db0721 Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 2 Sep 2022 16:25:25 +0100 Subject: [PATCH] Check if check_answers_card_number is present --- .../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