fix(admin): missing siret & service alert don't override action alert

Co-Authored-By: Christophe Robillard <christophe.robillard@beta.gouv.fr>
This commit is contained in:
Colin Darie 2023-09-21 16:51:50 +02:00 committed by krichtof
parent 934e86a465
commit 4c7664d61c

View file

@ -42,6 +42,8 @@ module Administrateurs
end
def alert_for_missing_siret_service
return if flash[:alert].present?
procedures = missing_siret_services
if procedures.any?
errors = []
@ -61,6 +63,8 @@ module Administrateurs
end
def alert_for_missing_service
return if flash[:alert].present?
procedures = missing_service
if procedures.any?
errors = []