Browse Source

refactor: po response

pull/1455/head^2
natdeanlewissoftwire 3 years ago
parent
commit
f329443adf
  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)
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

2
app/helpers/question_view_helper.rb

@ -30,7 +30,7 @@ module QuestionViewHelper
def answer_option_hint(resource)
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
private

Loading…
Cancel
Save