diff --git a/src/App.js b/src/App.js index 3b47e96029739445faab28cf75fd547049a06f1f..ce2d1506a587fb0fa9f83fcb2ecf0749feda63cb 100644 --- a/src/App.js +++ b/src/App.js @@ -777,12 +777,15 @@ class App extends React.Component { if (this.state.factors.fuel === 4 || this.state.factors.fuel === 6) { this.setState({ buildingQualified: true}); + if (this.state.factors.buildingTypes === 21) { + questions.reviewAnswers.next = 'congrats'; + } this.state.pages.congrats = ; } - if (this.state.factors.buildingTypes === '21') { + if (this.state.factors.buildingTypes === 21) { questions.financeInterest.prev = 'comfortIssues'; this.setState({ buildingQualified: true}); } else { @@ -790,6 +793,10 @@ class App extends React.Component { questions.financeInterest.prev = 'buildingTypes'; } + if (this.state.factors.buildingTypes === 20) { + this.setState({ buildingQualified: false}); + } + questions.contact.next = "reviewAnswers"; this.setState({ questions }, () => { this.setQuestion(tree.output.nextQuestion);