From 97c4ac0a065f3d3a485c2579b7f5e62fca1db6e8 Mon Sep 17 00:00:00 2001 From: Kulbhushan Kaushik Date: Mon, 28 Nov 2022 09:06:04 -0500 Subject: [PATCH] commit --- src/mixins/vehicle-questions-mixin.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mixins/vehicle-questions-mixin.js b/src/mixins/vehicle-questions-mixin.js index 0be25396..1e6ec309 100644 --- a/src/mixins/vehicle-questions-mixin.js +++ b/src/mixins/vehicle-questions-mixin.js @@ -53,7 +53,7 @@ export default { }); return reducedGlassParts; }, - comparePageIndices(currentPage, fmgPage) { + comparePageIndices(currentPage, issPage) { const orderedVehicleQuestionPages = [ issPageValues.PART_QUESTIONS, issPageValues.VEHICLE_PARTS, @@ -64,14 +64,14 @@ export default { return ( orderedVehicleQuestionPages.indexOf(currentPage) - - orderedVehicleQuestionPages.indexOf(fmgPage) + orderedVehicleQuestionPages.indexOf(issPage) ); }, - currentPageComesBeforePage(currentPage = this.$route.query.fmgPage, fmgPage) { - return this.comparePageIndices(currentPage, fmgPage) < 0; + currentPageComesBeforePage(currentPage = this.$route.query.issPage, issPage) { + return this.comparePageIndices(currentPage, issPage) < 0; }, - currentPageComesAfterPage(currentPage = this.$route.query.fmgPage, fmgPage) { - return this.comparePageIndices(currentPage, fmgPage) > 0; + currentPageComesAfterPage(currentPage = this.$route.query.issPage, issPage) { + return this.comparePageIndices(currentPage, issPage) > 0; }, setupInitialData(glass, index, alreadyAnsweredQuestions, vm) { const self = vm ?? this; @@ -366,7 +366,7 @@ export default { // Can't use `this` because navigateForward is also called from vin-pages-mixin async navigateForward(partsOrQuestions, vm, shouldGoToHeritageQuote) { const self = vm ?? this; - const currentPage = self.$route.query.fmgPage; + const currentPage = self.$route.query.issPage; const hasPartQuestions = this.hasPartQuestions(partsOrQuestions); const hasGlassLocationWithMultipleParts =