From 6e146a455226624bfe98a49e60d5aebba5664095 Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Fri, 16 May 2025 18:35:04 +0530 Subject: [PATCH] CASH-710 mobile validation fixed --- .../service-location/service-location.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 2690f09d4..5eef66e21 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -306,14 +306,11 @@ export default { }, isVehicleProtected: this.isVehicleProtected, isMobileSelected: - this.selectedAppointmentType === AppointmentTypeStrings.MOBILE && - !this.isMobileLocationOpened, + this.selectedAppointmentType == AppointmentTypeStrings.MOBILE && + !this.getIsMobileLocationOpened(), }; }, }, - isMobileLocationOpened() { - return this.$refs.mobileLocationQuestions.isMobileLocationOpened; - }, isServiceableMobile() { if (this.isRecalibrationServiceableMobile !== null) { return ( @@ -759,11 +756,16 @@ export default { }, displayMobileAddressQuestion(openMobileLocation) { var mobileLocationQuestionsRef = this.$refs.mobileLocationQuestions; - var isMobileAddressComplete = mobileLocationQuestionsRef.isMobileAddressComplete; - if (isMobileAddressComplete) { + var isMobileAddressComplete = mobileLocationQuestionsRef?.isMobileAddressComplete; + if (isMobileAddressComplete?.()) { + mobileLocationQuestionsRef.isMobileLocationOpened = false; + } else { mobileLocationQuestionsRef.isMobileLocationOpened = openMobileLocation; } }, + getIsMobileLocationOpened() { + return this.$refs.mobileLocationQuestions?.isMobileLocationOpened; + }, }, watch: { zipCode: {