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'])}