Merge pull request #152 from betagouv/fix-bug-retour-objectifs

🐛 Correction du bug choix net -> choix brut -> 5000€ -> undefined
pull/155/head v0.3
Mael 2018-01-18 17:30:03 +01:00 committed by GitHub
commit 45288b8bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -55,6 +55,7 @@ export default class extends Component {
targetNames = encodedTargets.split('+').map(decodeRuleName)
this.targetNames = targetNames
this.targetRules = reject(isNil)(
targetNames.map(name => findRuleByName(rules, name))
)
@ -76,7 +77,6 @@ export default class extends Component {
currentQuestion,
situationGate,
themeColours,
targetNames,
inputInversions,
done
} = this.props,
@ -106,13 +106,13 @@ export default class extends Component {
currentQuestion &&
this.buildStep({ unfolded: true })(
situationGate,
targetNames,
this.targetNames,
inputInversions
)(currentQuestion),
foldedSteps: map(
this.buildStep({ unfolded: false })(
situationGate,
targetNames,
this.targetNames,
inputInversions
),
foldedSteps