diff --git a/app/views/form/_select_question.html.erb b/app/views/form/_select_question.html.erb index fb12a203b..b5c6d94a9 100644 --- a/app/views/form/_select_question.html.erb +++ b/app/views/form/_select_question.html.erb @@ -1,7 +1,7 @@ <%= render partial: "form/guidance/#{question.guidance_partial}" if question.guidance_partial %> <% selected = @case_log.public_send(question.id) || "" %> -<%= answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %> +<% answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %> <%= f.govuk_collection_select question.id.to_sym, answers, :id,