Skip to content

Commit

Permalink
Ensure we use the actual date value
Browse files Browse the repository at this point in the history
  • Loading branch information
elken committed Dec 5, 2024
1 parent cc3d8c1 commit 608ced5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/claim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def additional_fees

def youth_court_fee_elligible?
data['claim_type'] == 'non_standard_magistrate' &&
data['rep_order_date'] >= Date.new(2024, 12, 6) &&
(data['rep_order_date']&.to_date&.>= Date.new(2024, 12, 6)) &&
data['youth_court'] == 'yes' &&
data['plea_category'].match?(/category_(?:2|[12]a)$/)
end
Expand Down

0 comments on commit 608ced5

Please sign in to comment.