Merge pull request #1924 from Safelite/feature/Digital/CSR-2087

CSR-2087
This commit is contained in:
hiteshkumar87 2024-07-29 18:13:09 +05:30 committed by GitHub
commit 46512d8289
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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