Browse Source

Update variable name

pull/2148/head
Kat 2 years ago
parent
commit
64db17a750
  1. 4
      app/models/form/lettings/questions/previous_let_type.rb

4
app/models/form/lettings/questions/previous_let_type.rb

@ -7,7 +7,7 @@ class Form::Lettings::Questions::PreviousLetType < ::Form::Question
@type = "radio"
@check_answers_card_number = 0
@hint_text = form.start_year_after_2024? ? "This is the rent type of the previous tenancy in this property." : ""
@answer_options = form.start_year_after_2024? ? ANSWER_OPTIONS_2024 : ANSWER_OPTIONS
@answer_options = form.start_year_after_2024? ? ANSWER_OPTIONS_AFTER_2024 : ANSWER_OPTIONS
@question_number = 16
end
@ -22,7 +22,7 @@ class Form::Lettings::Questions::PreviousLetType < ::Form::Question
"3" => { "value" => "Don’t know" },
}.freeze
ANSWER_OPTIONS_2024 = {
ANSWER_OPTIONS_AFTER_2024 = {
"1" => { "value" => "Social rent basis" },
"2" => { "value" => "Affordable rent basis" },
"5" => { "value" => "London Affordable Rent basis" },

Loading…
Cancel
Save