From 0e7d2430ce8065e49b3908a55d9f885e3e6e08fa Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Fri, 16 May 2025 12:30:14 +0530 Subject: [PATCH] CASH-708 validate zip code length --- .../mobile-location-modal-questions.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue index fc83f041a..36efad975 100644 --- a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue +++ b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue @@ -237,7 +237,10 @@ export default { async setMobileLocation() { this.resetAlerts(); // Validate the Zip Code - if (this.internalModel.addressQuestions.zipCode === "") { + if ( + this.internalModel.addressQuestions.zipCode === "" || + this.internalModel.addressQuestions.zipCode.length !== 5 + ) { this.setMobileLocationInvalid(true); return; }