From 3fb0ff69f080dc54e89550505913449bc707a73b Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:43:00 +0000 Subject: [PATCH] Hide link if question is unanswered --- app/views/form/check_errors.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/form/check_errors.html.erb b/app/views/form/check_errors.html.erb index df297b891..9adef3d8a 100644 --- a/app/views/form/check_errors.html.erb +++ b/app/views/form/check_errors.html.erb @@ -50,7 +50,7 @@
<% if !question.displayed_as_answered?(@log) || question.subsection.id == "setup" %> - <%= govuk_link_to check_errors_answer_text(question, @log), check_errors_answer_link(@log, question, @page, applicable_questions) %> + <%= govuk_link_to check_errors_answer_text(question, @log), check_errors_answer_link(@log, question, @page, applicable_questions) unless question.unanswered?(@log)%> <% else %> <% end %>