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:
parent
934e86a465
commit
4c7664d61c
1 changed files with 4 additions and 0 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue