Browse Source

Check if check_answers_card_number is present (#859)

pull/862/head v0.2.7
kosiakkatrina 2 years ago committed by GitHub
parent
commit
c71afd167c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/components/check_answers_summary_list_card_component.html.erb

2
app/components/check_answers_summary_list_card_component.html.erb

@ -1,5 +1,5 @@
<div class="x-govuk-summary-card govuk-!-margin-bottom-6"> <div class="x-govuk-summary-card govuk-!-margin-bottom-6">
<% 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? %>
<div class="x-govuk-summary-card__header"> <div class="x-govuk-summary-card__header">
<% if applicable_questions.first.check_answers_card_number == 1 %> <% if applicable_questions.first.check_answers_card_number == 1 %>
<h3 class="x-govuk-summary-card__title">Lead tenant</h3> <h3 class="x-govuk-summary-card__title">Lead tenant</h3>

Loading…
Cancel
Save