From 64ac9c3cbdb7ec12f1afdb5be954d635bd018d5f Mon Sep 17 00:00:00 2001 From: Mael Date: Fri, 7 Sep 2018 16:22:23 +0200 Subject: [PATCH] :sparkles: Code plus propre --- source/engine/mecanismViews/Variations.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/source/engine/mecanismViews/Variations.js b/source/engine/mecanismViews/Variations.js index baccde14a..f73268952 100644 --- a/source/engine/mecanismViews/Variations.js +++ b/source/engine/mecanismViews/Variations.js @@ -15,15 +15,11 @@ export default function Variations(nodeValue, explanation) { {explanation.map(({ condition, consequence, satisfied }) => (
  • + key={JSON.stringify(condition || 'sinon')}>
    - {condition && ( - <> - Si {makeJsx(condition)} - - )} + {condition && Si {makeJsx(condition)}}
    - {condition ? 'Alors : ' : 'Sinon : '} + {condition ? 'Alors : ' : 'Sinon : '} {makeJsx(consequence)}