Skip to content

Commit

Permalink
Only display answers that shouldn't be hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldfallen committed Nov 23, 2017
1 parent 224b3ee commit 47a99cd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/look-and-feel/layouts/check_your_answers.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@

<dl class="govuk-check-your-answers cya-questions-short">
{% for part in section.completedAnswers %}
{% if part.html %}
{{ part.html | safe }}
{% else %}
{{ answer(part.question, part.answer, part.url) }}
{% if not part.hide %}
{% if part.html %}
{{ part.html | safe }}
{% else %}
{{ answer(part.question, part.answer, part.url) }}
{% endif %}
{% endif %}
{% endfor %}
</dl>
Expand Down

0 comments on commit 47a99cd

Please sign in to comment.