From 023b7d1907bec8cde84b9fa9499c4ff95db8b8c8 Mon Sep 17 00:00:00 2001 From: James Glenn <47917431+JR-G@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:58:09 +0100 Subject: [PATCH] Also check for applications that have exceeded the unsuccessful cap --- app/models/application_form.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/application_form.rb b/app/models/application_form.rb index aae664e1b7f..dc85d4a394a 100644 --- a/app/models/application_form.rb +++ b/app/models/application_form.rb @@ -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?