@ -16,6 +16,8 @@ class Form::Sales::Pages::Address < ::Form::Page
end
def routed_to?(log, _current_user)
log.uprn_confirmed != 1 || log.uprn_known&.zero?
return false if log.uprn_known.nil?
log.uprn_confirmed != 1 || log.uprn_known.zero?
@ -13,4 +13,10 @@ class Form::Sales::Pages::PropertyLocalAuthority < ::Form::Page
Form::Sales::Questions::PropertyLocalAuthority.new(nil, nil, self),
]
return false if log.uprn_known.nil? && form.start_date.year >= 2023
super
@ -38,4 +38,7 @@ RSpec.describe Form::Sales::Pages::PropertyLocalAuthority, type: :model do
"is_la_inferred" => false,
}])
xit "it has the correct routed_to?" do