diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index d83df2247..8970dd091 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -186,6 +186,7 @@ export default { this.customerQuestions.addressQuestions.state ); + // Verify if the service zip code or registration zip code provided is serviceable const zipValidation = this.serviceZipCode ? this.validateZip(this.serviceZipCode) : this.validateZip(this.customerQuestions.addressQuestions.zipCode); const vinLookupResponse = await vinLookup; @@ -198,12 +199,16 @@ export default { return; } - // Validate if the original or service zip provided is serviceable + // if the neither the registration zip code or service zip code are not serviceable this.isZipServicable = zipValidationResponse.data.isServiceable; - if (!this.isZipServicable) { + if (!this.isZipServicable) { this.displayNonServiceableZipAlert = true; this.showServiceZipField = true; this.$refs.funnelFooter.removeLoader(); + } else if (!this.serviceZipCode) { + // if the registration zip code is servicable and nothing was entered for the service zip code + // then set the service zip code to the registration zip code + this.serviceZipCode = this.customerQuestions.addressQuestions.zipCode; } const carEntered = store.getters.vehicle;