commit
ac8f7b71b5
1 changed files with 7 additions and 3 deletions
|
|
@ -325,10 +325,13 @@ export default {
|
||||||
// If a VIN has already been found. Validate the Service Zip (in case of changes)
|
// If a VIN has already been found. Validate the Service Zip (in case of changes)
|
||||||
const zipCodeData = await this.getZipCodeData(this.serviceZipCode);
|
const zipCodeData = await this.getZipCodeData(this.serviceZipCode);
|
||||||
|
|
||||||
// Check if Service Zip entered is serviceable
|
// Check if Service Zip entered is serviceable then save the ZIP info and email address
|
||||||
if (zipCodeData.isServiceable) {
|
if (zipCodeData.isServiceable) {
|
||||||
// If the Service Zip entered is serviceable then save the Zip Info and Email Address and navigate forward
|
//Only save the service location if the zip changed or we lack zipCodeCtu
|
||||||
if (this.$store.getters.order.serviceLocation.zipCode != this.serviceZipCode) {
|
if (
|
||||||
|
this.$store.getters.order.serviceLocation.zipCode != this.serviceZipCode ||
|
||||||
|
!this.$store.getters.order.serviceLocation.zipCodeCtu
|
||||||
|
) {
|
||||||
const vehicleRegistrationInfo = this.$store.getters.vehicle.registration;
|
const vehicleRegistrationInfo = this.$store.getters.vehicle.registration;
|
||||||
if (vehicleRegistrationInfo.zipCode == this.serviceZipCode) {
|
if (vehicleRegistrationInfo.zipCode == this.serviceZipCode) {
|
||||||
await this.dispatchStoreAction(
|
await this.dispatchStoreAction(
|
||||||
|
|
@ -338,6 +341,7 @@ export default {
|
||||||
city: vehicleRegistrationInfo.city,
|
city: vehicleRegistrationInfo.city,
|
||||||
zipCode: vehicleRegistrationInfo.zipCode,
|
zipCode: vehicleRegistrationInfo.zipCode,
|
||||||
state: vehicleRegistrationInfo.state,
|
state: vehicleRegistrationInfo.state,
|
||||||
|
zipCodeCtu: zipCodeData.zipCodeCtu,
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue