Browse Source

Refactor ifs

pull/2220/head
Rachael Booth 2 years ago
parent
commit
bccf49777c
  1. 6
      app/models/form/sales/questions/gender_identity2.rb
  2. 6
      app/models/form/sales/questions/person_gender_identity.rb

6
app/models/form/sales/questions/gender_identity2.rb

@ -24,8 +24,8 @@ class Form::Sales::Questions::GenderIdentity2 < ::Form::Question
}.freeze
def hint_text
if form.start_year_after_2024?
"This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
end
return unless form.start_year_after_2024?
"This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
end
end

6
app/models/form/sales/questions/person_gender_identity.rb

@ -23,8 +23,8 @@ class Form::Sales::Questions::PersonGenderIdentity < ::Form::Question
}.freeze
def hint_text
if form.start_year_after_2024?
"This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
end
return unless form.start_year_after_2024?
"This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
end
end

Loading…
Cancel
Save