From 187d809b1a7b91d5b50a5c12d3cd8118a37d6d40 Mon Sep 17 00:00:00 2001 From: mama Date: Mon, 21 Aug 2017 15:39:54 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20Pas=20de=20barre=20de=20r=C3=A9sultats?= =?UTF-8?q?=20si=20pas=20de=20simulation=20en=20cours?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/Results.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/components/Results.js b/source/components/Results.js index 6e00e3414..58ebc0d71 100644 --- a/source/components/Results.js +++ b/source/components/Results.js @@ -34,8 +34,9 @@ export default class Results extends Component { conversationFirstAnswer: showResults, situationGate, location - } = this.props, - explanation = getObjectives(situationGate, analysedSituation.root, analysedSituation.parsedRules) + } = this.props + + let explanation = R.has('root', analysedSituation) && getObjectives(situationGate, analysedSituation.root, analysedSituation.parsedRules) if (!explanation) return null