Skip to content

Commit

Permalink
Also check for applications that have exceeded the unsuccessful cap
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-G committed Oct 20, 2023
1 parent c56320c commit 023b7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/application_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def count_unsuccessful_choices(count_inactive: true)
end

def reached_maximum_unsuccessful_choices?
count_unsuccessful_choices(count_inactive: false) == MAXIMUM_NUMBER_OF_UNSUCCESSFUL_APPLICATIONS
count_unsuccessful_choices(count_inactive: false) >= MAXIMUM_NUMBER_OF_UNSUCCESSFUL_APPLICATIONS
end

def can_submit_further_applications?
Expand Down

0 comments on commit 023b7d1

Please sign in to comment.