From 5a629be7416d64e82459520c68e89a105a149c63 Mon Sep 17 00:00:00 2001 From: Sneha Date: Thu, 12 Dec 2024 11:49:21 +0530 Subject: [PATCH 1/2] CSR-2486 --- src/layouts/license-plate-lookup/license-plate-lookup.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 2aba11db4..07dea7b21 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -232,6 +232,11 @@ export default { const resultMap = await settleAllPromises(promiseResultMap); // Lookup vin + if (!resultMap.registrationZipValidationResponse.isValid) { + this.displayInvalidZipAlert = true; + return this.$refs.navbar.removeLoader(); + } + const vinLookup = await this.lookupVin( this.licensePlate, resultMap.registrationZipValidationResponse.state @@ -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() { From c6baefd0fb61b963185f06ede95169b8fbc7b61e Mon Sep 17 00:00:00 2001 From: Sneha Date: Thu, 12 Dec 2024 11:52:13 +0530 Subject: [PATCH 2/2] Update license-plate-lookup.vue --- src/layouts/license-plate-lookup/license-plate-lookup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 07dea7b21..b374e8bb6 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -231,12 +231,12 @@ export default { const resultMap = await settleAllPromises(promiseResultMap); - // Lookup vin if (!resultMap.registrationZipValidationResponse.isValid) { this.displayInvalidZipAlert = true; return this.$refs.navbar.removeLoader(); } + // Lookup vin const vinLookup = await this.lookupVin( this.licensePlate, resultMap.registrationZipValidationResponse.state