diff --git a/src/AddressSearch.js b/src/AddressSearch.js index c4029f7adca2c0ceb00dcde35992d1bc0025732d..e13d0d4cc45b6b5bd48e3cfc0076c37f709b11b2 100644 --- a/src/AddressSearch.js +++ b/src/AddressSearch.js @@ -76,6 +76,7 @@ export default class AddressSearch extends React.Component { this.setState({ addressFound: false , loadingAddressSearchBtn: false, + disabledAddressSearchBtn: true, }); } @@ -245,7 +246,7 @@ export default class AddressSearch extends React.Component { } let message = ( - + {modalHeader} diff --git a/src/App.js b/src/App.js index f2ce82797d2e822ff82ad6b761b40c30376d290d..9c19735c2eb567c4701caa048bfcf483afa08ff6 100644 --- a/src/App.js +++ b/src/App.js @@ -845,6 +845,7 @@ class App extends React.Component { surveyId: this.props.building.data.surveyId, buildingId: this.props.building.data.buildingId, buildingQualified: this.state.buildingQualified, + userId: this.props.building.data.userId, }); }); this.setQuestion(this.state.questions.reviewAnswers.next); @@ -871,13 +872,19 @@ class App extends React.Component { const complete = this.props.complete; let addressSearchMessage = ""; + let addressSearchSuccess = true; if (building.data !== undefined && building.data.success === false && building.data.message !== undefined) { + addressSearchSuccess = false; addressSearchMessage = this.props.building.data.message; + } else { + addressSearchSuccess = true; } const questions = { addressSearch: ,