From cfd14b3436bb975c2e878386c2a9f4aa80ad1e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Tue, 15 Mar 2022 19:01:58 +0100 Subject: [PATCH] Ajout du filtre de LFR1 si non applicable --- .../pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx b/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx index cfd3397be..d2c9f11dd 100644 --- a/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx +++ b/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx @@ -211,7 +211,10 @@ export const FormulaireS1S1Bis = ({ node.dottedName && dotName + ' . ' + node.dottedName in engine.parsedRules && engine.evaluate(dotName + ' . ' + node.dottedName) - .nodeValue !== null + .nodeValue !== null && + (node.dottedName + ' applicable' in engine.parsedRules + ? engine.evaluate(node.dottedName + ' applicable').nodeValue + : true) ) .flatMap((node) => { if (