Browse Source

fix: don't call user in get_answer_label in CYA component

fix-remove-attr-accessors-from-questions-in-cldc-1723
Sam Seed 2 years ago
parent
commit
18f1ede496
  1. 2
      app/components/check_answers_summary_list_card_component.html.erb

2
app/components/check_answers_summary_list_card_component.html.erb

@ -11,7 +11,7 @@
<% summary_list.row do |row| %>
<% row.key { question.check_answer_label.to_s.presence || question.header.to_s } %>
<% row.value do %>
<span class="govuk-!-margin-right-4"><%= get_answer_label(question, user) %></span>
<span class="govuk-!-margin-right-4"><%= get_answer_label(question) %></span>
<% extra_value = question.get_extra_check_answer_value(log) %>
<% if extra_value %>
<span class="govuk-!-font-weight-regular app-!-colour-muted"><%= extra_value %></span>

Loading…
Cancel
Save