diff --git a/src/layouts/policy-endorsements/policy-endorsements.vue b/src/layouts/policy-endorsements/policy-endorsements.vue index 1d4e1972..b3f88ffa 100644 --- a/src/layouts/policy-endorsements/policy-endorsements.vue +++ b/src/layouts/policy-endorsements/policy-endorsements.vue @@ -134,23 +134,21 @@ export default { async forwardButtonAction() { // TO DO: remove hard coding and update data format once service returns endorsement questions if (this.educatorEndorsement) { - this.questionAnswersArray.push( - { + this.questionAnswersArray.push({ questionNum: 1, endorsement: 'Educator', questionText: this.schoolPropertyQuestionText, selectedAnswer: this.schoolPropertyAnswer }); - }; + } if (this.parkingGuardEndorsement) { - this.questionAnswersArray.push( - { + this.questionAnswersArray.push({ questionNum: 2, endorsement: 'Parking Guard', questionText: this.parkingLotQuestionText, selectedAnswer: this.parkingLotAnswer }); - }; + } // save answers to store as order.policy.endorsementQuestionAnswers useMainStore().saveEndorsementQuestionAnswers(this.questionAnswersArray);