remove condition store.getters.applicationUser.triggeredSiteEntry  not required
This commit is contained in:
hiteshkumar87 2024-07-29 16:55:47 +05:30
parent 5b79d9ed28
commit 459682d8a0

View file

@ -128,50 +128,39 @@ const routes = [
(leadGenDamage.toUpperCase() != "WINDSHIELDREPAIR" || (leadGenDamage.toUpperCase() != "WINDSHIELDREPAIR" ||
leadGenNumberOfChips?.length > 0) leadGenNumberOfChips?.length > 0)
) { ) {
if (!store.getters.applicationUser.triggeredSiteEntry) { store.commit(storeMutations.UPDATE_IS_LEAD_GEN, true);
store.commit(storeMutations.UPDATE_IS_LEAD_GEN, true); store.commit(storeMutations.UPDATE_LEAD_GEN_YEAR, leadGenYear);
store.commit(storeMutations.UPDATE_LEAD_GEN_YEAR, leadGenYear); store.commit(storeMutations.UPDATE_LEAD_GEN_MAKE, leadGenMake);
store.commit(storeMutations.UPDATE_LEAD_GEN_MAKE, leadGenMake); store.commit(storeMutations.UPDATE_LEAD_GEN_MODEL, leadGenModel);
store.commit(storeMutations.UPDATE_LEAD_GEN_MODEL, leadGenModel); store.commit(storeMutations.UPDATE_LEAD_GEN_STYLE, leadGenStyle);
store.commit(storeMutations.UPDATE_LEAD_GEN_STYLE, leadGenStyle); store.commit(storeMutations.UPDATE_LEAD_GEN_DAMAGE_TYPE, leadGenDamage);
if (leadGenDamage.toUpperCase() == "WINDSHIELDREPLACE") {
store.commit(storeMutations.UPDATE_LEAD_GEN_IS_REPAIR, false);
store.commit(storeMutations.UPDATE_LEAD_GEN_NUMBER_OF_CHIPS, null);
} else if (leadGenDamage.toUpperCase() == "WINDSHIELDREPAIR") {
store.commit(storeMutations.UPDATE_LEAD_GEN_IS_REPAIR, true);
store.commit( store.commit(
storeMutations.UPDATE_LEAD_GEN_DAMAGE_TYPE, storeMutations.UPDATE_LEAD_GEN_NUMBER_OF_CHIPS,
leadGenDamage leadGenNumberOfChips
); );
if (leadGenDamage.toUpperCase() == "WINDSHIELDREPLACE") { }
store.commit(storeMutations.UPDATE_LEAD_GEN_IS_REPAIR, false); store.commit(storeMutations.UPDATE_LEAD_GEN_ZIP_CODE, leadGenZipCode);
store.commit( store.commit(
storeMutations.UPDATE_LEAD_GEN_NUMBER_OF_CHIPS, storeMutations.UPDATE_LEAD_GEN_EMAIL_ADDRESS,
null leadGenEmail
); );
} else if (leadGenDamage.toUpperCase() == "WINDSHIELDREPAIR") { if (leadGenIsInsurance == "true") {
store.commit(storeMutations.UPDATE_LEAD_GEN_IS_REPAIR, true); store.commit(storeMutations.UPDATE_LEAD_GEN_IS_INSURANCE, true);
store.commit(
storeMutations.UPDATE_LEAD_GEN_NUMBER_OF_CHIPS,
leadGenNumberOfChips
);
}
store.commit( store.commit(
storeMutations.UPDATE_LEAD_GEN_ZIP_CODE, storeMutations.UPDATE_LEAD_GEN_SERVICE_PACKAGE,
leadGenZipCode leadGenServicePackage
); );
}
if (leadGenDamage.toUpperCase() != "WINDSHIELDREPAIR") {
store.commit( store.commit(
storeMutations.UPDATE_LEAD_GEN_EMAIL_ADDRESS, storeMutations.UPDATE_LEAD_GEN_VIN_SELECTION,
leadGenEmail leadGenVinSelection
); );
if (leadGenIsInsurance == "true") {
store.commit(storeMutations.UPDATE_LEAD_GEN_IS_INSURANCE, true);
store.commit(
storeMutations.UPDATE_LEAD_GEN_SERVICE_PACKAGE,
leadGenServicePackage
);
}
if (leadGenDamage.toUpperCase() != "WINDSHIELDREPAIR") {
store.commit(
storeMutations.UPDATE_LEAD_GEN_VIN_SELECTION,
leadGenVinSelection
);
}
} }
} }