From ea16e6da30f8fd1040cf8997c983284f7691fb2a Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Mon, 29 Jul 2024 18:00:04 +0530 Subject: [PATCH] CSR-2087 updating IsInsurance parameter --- src/router/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index f93b08ee6..d86c84353 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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,