updating IsInsurance parameter
This commit is contained in:
hiteshkumar87 2024-07-29 18:00:04 +05:30
parent 459682d8a0
commit ea16e6da30

View file

@ -124,7 +124,8 @@ const routes = [
leadGenIsInsurance && leadGenIsInsurance &&
(leadGenDamage.toUpperCase() == "WINDSHIELDREPAIR" || (leadGenDamage.toUpperCase() == "WINDSHIELDREPAIR" ||
leadGenVinSelection?.length > 0) && leadGenVinSelection?.length > 0) &&
(leadGenIsInsurance == "false" || leadGenServicePackage?.length > 0) && (leadGenIsInsurance?.toUpperCase() == "FALSE" ||
leadGenServicePackage?.length > 0) &&
(leadGenDamage.toUpperCase() != "WINDSHIELDREPAIR" || (leadGenDamage.toUpperCase() != "WINDSHIELDREPAIR" ||
leadGenNumberOfChips?.length > 0) leadGenNumberOfChips?.length > 0)
) { ) {
@ -149,7 +150,7 @@ const routes = [
storeMutations.UPDATE_LEAD_GEN_EMAIL_ADDRESS, storeMutations.UPDATE_LEAD_GEN_EMAIL_ADDRESS,
leadGenEmail leadGenEmail
); );
if (leadGenIsInsurance == "true") { if (leadGenIsInsurance?.toUpperCase() == "TRUE") {
store.commit(storeMutations.UPDATE_LEAD_GEN_IS_INSURANCE, true); store.commit(storeMutations.UPDATE_LEAD_GEN_IS_INSURANCE, true);
store.commit( store.commit(
storeMutations.UPDATE_LEAD_GEN_SERVICE_PACKAGE, storeMutations.UPDATE_LEAD_GEN_SERVICE_PACKAGE,