From 339a2343dee38127e0c2d26cb5ade83c0be19f38 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Fri, 18 Jul 2025 12:20:07 -0400 Subject: [PATCH] CASH-1077 | Remove extra zip call --- .../shop-question/shop-question-popup.vue | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/layouts/service-location/shop-question/shop-question-popup.vue b/src/layouts/service-location/shop-question/shop-question-popup.vue index f6586d444..699452caf 100644 --- a/src/layouts/service-location/shop-question/shop-question-popup.vue +++ b/src/layouts/service-location/shop-question/shop-question-popup.vue @@ -257,21 +257,15 @@ export default { this.modal.closeModal(); }, async onSearchZip(event) { - this.isLoading = true; event.preventDefault(); - if (this.localZipCode) { - this.zipCodeData = await this.getZipCodeData(this.localZipCode, "service-location"); - } else { + if (!this.localZipCode) { this.zipCodeData = { - containsMilitaryBase: false, - isServiceable: false, - isValid: false, - state: "", - zipCode: this.localZipCode, - zipCodeCtu: "", - }; - this.isLoading = false; + isValid: false + } + return; } + this.isLoading = true; + this.zipCodeData = await this.getZipCodeData(this.localZipCode, "service-location"); // Add zipCode to zipCodeData as it does not come back from endpoint this.zipCodeData.zipCode = this.localZipCode; if (this.zipCodeData.isValid) {