Skip to content

Commit

Permalink
Removed as a must conditional for the arrival category
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Jul 5, 2019
1 parent a885172 commit ebae7b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/lib/economy/rates_for_refugee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def qualifies_as(skip_all_replace = true)
# Schablonkategori Ankomstbarn
#
# Måste:
# inte ha datum medborgarskap
# :citizenship_at
# ha inskrivningsdatum
# :registered
#
Expand All @@ -81,7 +79,7 @@ def qualifies_as(skip_all_replace = true)
# :citizenship_at
# Returns the number of days for the rate and the rate amount
def arrival_0_17(category)
return [] if @refugee.citizenship_at? || @refugee.registered.nil?
return [] if @refugee.registered.nil?

category.rates.map do |rate|
interval = interval_for_arrival_0_17(category, rate)
Expand Down

0 comments on commit ebae7b4

Please sign in to comment.