From f4c1a4d364fdee5f21d88b3daac3f6c2dc263974 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Mon, 9 Oct 2017 11:32:55 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20Corrige=20la=20r=C3=A9gression=20sur=20?= =?UTF-8?q?la=20page=20d'accueil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/Results.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/components/Results.js b/source/components/Results.js index a34c57296..80d186787 100644 --- a/source/components/Results.js +++ b/source/components/Results.js @@ -30,13 +30,12 @@ export default class Results extends Component { location } = this.props - - let explanation = R.has('root', analysedSituation) && clearDict() && getObjectives(situationGate, analysedSituation.root, analysedSituation.parsedRules), - hint = analysedSituation.root.simulateur && analysedSituation.root.simulateur.indice + let explanation = R.has('root', analysedSituation) && clearDict() && getObjectives(situationGate, analysedSituation.root, analysedSituation.parsedRules) if (!explanation) return null - let onRulePage = R.contains('/regle/')(location.pathname) + let onRulePage = R.contains('/regle/')(location.pathname), + hint = analysedSituation.root.simulateur && analysedSituation.root.simulateur.indice return (