From 68f1d10e19699f1dda5799e5dd97f2a5465037fd Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 12 Jun 2023 17:46:01 +0200 Subject: [PATCH] style(dossier-badge): en_instruction & accepte should have badge --- app/helpers/dossier_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )