diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 2aba11db4..b374e8bb6 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -231,6 +231,11 @@ export default { const resultMap = await settleAllPromises(promiseResultMap); + if (!resultMap.registrationZipValidationResponse.isValid) { + this.displayInvalidZipAlert = true; + return this.$refs.navbar.removeLoader(); + } + // Lookup vin const vinLookup = await this.lookupVin( this.licensePlate, @@ -251,7 +256,6 @@ export default { this.displayInvalidZipAlert = true; return this.$refs.navbar.removeLoader(); } - this.displayInvalidZipAlert = false; // Check if the CarId has changed. this.isCarIdDifferent = @@ -346,6 +350,7 @@ export default { this.displayNonServiceableZipAlert = false; this.displayMatchedDifferentVehicleAlert = false; this.displayVinLookupByHomeAddressNotAllowedAlert = false; + this.displayInvalidZipAlert = false; }, }, mounted() {