Browse Source

remove unnecessary conditions from depends on, the displayed in tasklist method override is sufficient

pull/1368/head
Arthur Campbell 3 years ago
parent
commit
be1871e4cb
  1. 11
      app/models/form/lettings/subsections/property_information.rb

11
app/models/form/lettings/subsections/property_information.rb

@ -3,16 +3,7 @@ class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection
super super
@id = "property_information" @id = "property_information"
@label = "Property information" @label = "Property information"
@depends_on = [ @depends_on = [{ "non_location_setup_questions_completed?" => true }]
{
"non_location_setup_questions_completed?" => true,
"is_supported_housing?" => false,
},
{
"non_location_setup_questions_completed?" => true,
"is_renewal?" => false,
},
]
end end
def pages def pages

Loading…
Cancel
Save