From 65a78418ec198e5224e1d87662469022e18f1d80 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Mon, 2 Oct 2017 17:08:14 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20Admettre=20qu'on=20ne=20peut=20pas=20ca?= =?UTF-8?q?lculer=20les=20'une=20possibilit=C3=A9'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/rule/Algorithm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/components/rule/Algorithm.js b/source/components/rule/Algorithm.js index 37cf120f1..ef2ad577d 100644 --- a/source/components/rule/Algorithm.js +++ b/source/components/rule/Algorithm.js @@ -18,7 +18,8 @@ export default class Algorithm extends React.Component { showValues: true } render(){ - let {traversedRule: rule, showValues} = this.props + let {traversedRule: rule, showValues} = this.props, + ruleWithoutFormula = !rule['formule'] || rule.formule.explanation['une possibilité'] return (
@@ -34,7 +35,7 @@ export default class Algorithm extends React.Component { }}

Calcul

- {rule['formule'] ? makeJsx(rule['formule']) : } + {ruleWithoutFormula ? : makeJsx(rule['formule'])}