🐛 Corrige la régression sur la page d'accueil

pull/86/head
Laurent Bossavit 2017-10-09 11:32:55 +02:00
parent 80fd16a0d9
commit f4c1a4d364
1 changed files with 3 additions and 4 deletions

View File

@ -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 (
<section id="results" className={classNames({show: showResults})}>