Browse Source

refactor: review response

pull/1455/head
natdeanlewissoftwire 3 years ago
parent
commit
efd4261598
  1. 2
      app/helpers/locations_helper.rb
  2. 2
      app/helpers/question_view_helper.rb

2
app/helpers/locations_helper.rb

@ -80,7 +80,7 @@ module LocationsHelper
def location_creation_success_notice(location) def location_creation_success_notice(location)
if location.confirmed if location.confirmed
"#{location.postcode} #{location.startdate.blank? || location.startdate < Time.zone.now ? 'has been' : 'will be'} added to this scheme" "#{location.postcode} #{location.startdate.blank? || location.startdate.before?(Time.zone.now) ? 'has been' : 'will be'} added to this scheme"
end end
end end

2
app/helpers/question_view_helper.rb

@ -30,7 +30,7 @@ module QuestionViewHelper
def answer_option_hint(resource) def answer_option_hint(resource)
return unless resource.instance_of?(Scheme) return unless resource.instance_of?(Scheme)
[resource.primary_client_group, resource.secondary_client_group].filter(&:present?).join(", ") [resource.primary_client_group, resource.secondary_client_group].compact.join(", ")
end end
private private

Loading…
Cancel
Save