diff --git a/app/models/location.rb b/app/models/location.rb index 9ca32ab85..46cb1da6c 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -380,7 +380,7 @@ class Location < ApplicationRecord return :deactivated if open_deactivation&.deactivation_date.present? && Time.zone.now >= open_deactivation.deactivation_date return :deactivating_soon if open_deactivation&.deactivation_date.present? && Time.zone.now < open_deactivation.deactivation_date return :reactivating_soon if recent_deactivation&.reactivation_date.present? && Time.zone.now < recent_deactivation.reactivation_date - return :activating_soon if Time.zone.now < startdate + return :activating_soon if startdate.present? && Time.zone.now < startdate :active end