Browse Source

Lint fixes

pull/3054/head
Manny Dinssa 1 month ago
parent
commit
2db0cd4d55
  1. 2
      app/models/organisation_name_change.rb

2
app/models/organisation_name_change.rb

@ -36,7 +36,7 @@ class OrganisationNameChange < ApplicationRecord
end end
def includes_date?(date) def includes_date?(date)
startdate <= date && (next_change&.startdate.nil? || next_change&.startdate > date) startdate <= date && (!next_change&.startdate || next_change.startdate > date)
end end
def next_change def next_change

Loading…
Cancel
Save