Update vehicle-damage.vue

formatting
This commit is contained in:
hiteshkumar87 2023-07-24 11:57:54 +05:30
parent 62eda36f75
commit a244865c5e

View file

@ -91,11 +91,11 @@ export default {
// Call APIs // Call APIs
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage); const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
const queryString = window.location.search; const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString); const urlParams = new URLSearchParams(queryString);
const lowerCaseParams = new URLSearchParams(); const lowerCaseParams = new URLSearchParams();
for (const [name, value] of urlParams) { for (const [name, value] of urlParams) {
lowerCaseParams.append(name.toLowerCase(), value); lowerCaseParams.append(name.toLowerCase(), value);
} }
const zip = lowerCaseParams.get(queryStrings.ZIP_CODE) const zip = lowerCaseParams.get(queryStrings.ZIP_CODE)
? lowerCaseParams.get(queryStrings.ZIP_CODE) ? lowerCaseParams.get(queryStrings.ZIP_CODE)
@ -103,9 +103,7 @@ export default {
const damageOptionsPromise = baseMixin.methods.dispatchStoreAction( const damageOptionsPromise = baseMixin.methods.dispatchStoreAction(
storeActions.GET_DAMAGE_OPTIONS, storeActions.GET_DAMAGE_OPTIONS,
{ carId: store.getters.vehicle.carId, { carId: store.getters.vehicle.carId, zipCode: zip }
zipCode:zip,
}
); );
// Settle promises and get results // Settle promises and get results
@ -171,7 +169,7 @@ export default {
true true
); );
} }
if(this.serviceZipCode){ if (this.serviceZipCode) {
this.pushEventToGA( this.pushEventToGA(
this.GaCategories.FUNNEL_ENTRY, this.GaCategories.FUNNEL_ENTRY,
this.GaActions.ZIP_CODE_PROVIDED, this.GaActions.ZIP_CODE_PROVIDED,
@ -441,7 +439,6 @@ export default {
return selectedGlassToReplace; return selectedGlassToReplace;
}, },
}, },
computed: { computed: {
isWindshieldDamageLocation() { isWindshieldDamageLocation() {