+
+ Which season(s) is the building operational?
+
+
+ Check all that apply
+
+ {
+ this.props.answerIds.map(answerId => {
+ const answerName = this.props.answers[answerId];
+ return (
+
+
+
+
+
+
+
+ );
+ })
+ }
+
+
+
+
+ {'<'} Back
+
+
+
+
+
+
+
+ );
+
+ return (
+
@@ -72,18 +45,7 @@ export default class ReviewAnswers extends React.Component {
{
- Object.keys(questions)
- .filter(
- question => questions[question].title !== undefined &&
- (
- (questions[question].answer !== undefined && questions[question].answer.length !== 0) ||
- (
- questions[question].questions !== undefined &&
- questions[question].questions[0].value !== 0 &&
- questions[question].questions[1].value !== 0
- )
- )
- )
+ questions.order
.map(question => {
if (questions[question].questions !== undefined) {
if (questions[question].questions.filter(question => ![0, ""].includes(question.value)).length > 0) {
@@ -169,6 +131,55 @@ export default class ReviewAnswers extends React.Component {
);
+ } else if (question === 'unitBreakdown') {
+ return (
+ questions['unitBreakdown'].answers.filter(c => c === 0).length !== 6?
+
+
+
+
+ Apartment Unit Breakdown
+
+
+ Studio: {this.props.questions['unitBreakdown'].answers[0]}
+ One Bedroom: {this.props.questions['unitBreakdown'].answers[1]}
+ Two Bedroom: {this.props.questions['unitBreakdown'].answers[2]}
+ Three Bedroom: {this.props.questions['unitBreakdown'].answers[3]}
+ Four Bedroom: {this.props.questions['unitBreakdown'].answers[4]}
+ Other: {this.props.questions['unitBreakdown'].answers[5]}
+
+
+
+
+

this.editAnswer('unitBreakdown') } />
+
+
+
+
+
+ : ''
+ );
+ } else if (question === 'feedback') {
+ return (
+
+
+
+
+ How did you first hear about us?
+
+
+ {this.props.questions[question].answers[0]}
+
+
+
+
+

this.editAnswer('feedback') } />
+
+
+
+
+
+ );
} else {
return (
@@ -193,27 +204,6 @@ export default class ReviewAnswers extends React.Component {
}
})
}
-
-
-
-
- How did you first hear about us?
-
-
- {this.props.questions['feedback'].answers[0]}
-
-
-
-
-

this.editAnswer('feedback') } />
-
-
-
-
-
-
- {aptBreakdown}
-