diff --git a/app/helpers/dossier_helper.rb b/app/helpers/dossier_helper.rb index 218fde5a1..6dfeb1f40 100644 --- a/app/helpers/dossier_helper.rb +++ b/app/helpers/dossier_helper.rb @@ -81,7 +81,7 @@ module DossierHelper status_text = dossier_display_state(state, lower: true) tag.span status_text, role: 'status', class: class_names( 'fr-badge fr-badge--sm' => true, - 'fr-badge--no-icon' => [Dossier.states.fetch(:en_instruction), Dossier.states.fetch(:accepte)].include?(state), + 'fr-badge--no-icon' => [Dossier.states.fetch(:en_instruction), Dossier.states.fetch(:accepte)].exclude?(state), class_badge_state(state) => true, alignment_class => true )