Skip to content

Commit

Permalink
Merge pull request #8708 from DFE-Digital/amend-unsuccessful-cap-check
Browse files Browse the repository at this point in the history
Also check for applications that have exceeded the unsuccessful cap
  • Loading branch information
JR-G authored Oct 20, 2023
2 parents c56320c + 023b7d1 commit f92f855
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 f92f855

Please sign in to comment.