From 8f1818511acc929f76ed97c80856d8584bc275b8 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 8 Feb 2024 12:47:58 +0100 Subject: [PATCH] fix(demarche): estimated delay display for declarative en instruction --- app/components/procedure/estimated_delay_component.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/procedure/estimated_delay_component.rb b/app/components/procedure/estimated_delay_component.rb index 7a3329e15..aa42cc64a 100644 --- a/app/components/procedure/estimated_delay_component.rb +++ b/app/components/procedure/estimated_delay_component.rb @@ -11,7 +11,8 @@ class Procedure::EstimatedDelayComponent < ApplicationComponent end def render? - return false if @procedure.declarative? + return false if @procedure.declarative_accepte? + estimation_present? end