From f48d0af3eb04f5d40006c864c3690f3e5d59ff1f Mon Sep 17 00:00:00 2001 From: Mael Date: Tue, 9 Jul 2019 16:36:39 +0200 Subject: [PATCH] :bug: On n'affiche pas la comparaison si montant trop faible --- source/components/SchemeComparaison.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/components/SchemeComparaison.js b/source/components/SchemeComparaison.js index 1eda192b8..5fe06573b 100644 --- a/source/components/SchemeComparaison.js +++ b/source/components/SchemeComparaison.js @@ -329,7 +329,7 @@ const SchemeComparaison = ({ )} {conversationStarted && - !!getRule('assimilé', 'revenu net après impôt') && ( + !!getRule('assimilé', 'revenu net après impôt')?.nodeValue && ( <>

Revenu net après impôt

@@ -629,8 +629,9 @@ const RuleValueLink = compose( numFractionDigits={0} {...rule} unit={ - /* //TODO the unit should be integrated in the leaf rules of base.yaml and infered by mecanisms. Will be done in a future release*/ - unit !== undefined ? unit : '€'} + /* //TODO the unit should be integrated in the leaf rules of base.yaml and infered by mecanisms. Will be done in a future release*/ + unit !== undefined ? unit : '€' + } /> {appendText && <> {appendText}}