From 5445a8e56554a6fcf6b4d2c04fe4a878192407da Mon Sep 17 00:00:00 2001 From: RujitRaval Date: Thu, 12 Dec 2019 13:57:32 -0500 Subject: [PATCH 1/2] Set buildingQualified to false for single family building --- src/App.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 3b47e9602..451f694df 100644 --- a/src/App.js +++ b/src/App.js @@ -782,7 +782,7 @@ class App extends React.Component { />; } - if (this.state.factors.buildingTypes === '21') { + if (this.state.factors.buildingTypes === 21) { questions.financeInterest.prev = 'comfortIssues'; this.setState({ buildingQualified: true}); } else { @@ -790,6 +790,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); -- GitLab From eacbab451dcf9d70aefa7cdd9107f17cd658259a Mon Sep 17 00:00:00 2001 From: RujitRaval Date: Thu, 12 Dec 2019 14:25:24 -0500 Subject: [PATCH 2/2] Set congrats as next for reviewAnswers --- src/App.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.js b/src/App.js index 451f694df..ce2d1506a 100644 --- a/src/App.js +++ b/src/App.js @@ -777,6 +777,9 @@ 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 = ; -- GitLab