🐛 Pas de barre de résultats si pas de simulation en cours

pull/37/head
mama 2017-08-21 15:39:54 +02:00
parent d80287a4d2
commit 187d809b1a
1 changed files with 3 additions and 2 deletions

View File

@ -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