From 085abd1f3a8814564fb6d4ff5a4142b8b8f6f0a7 Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Wed, 1 Jul 2026 14:01:58 -0400 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/router/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index a45182d6..dcfc11af 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -155,8 +155,8 @@ router.beforeEach(async (to, from) => { showIssLoadingModal(true); } -const callSaveSession = !useMainStore().order?.referralNumber && (to.name === issPageValues.VEHICLE_SELECTION || to.name === issPageValues.POLICY_VEHICLES); -if (callSaveSession) { + const callSaveSession = !useMainStore().order?.referralNumber && (to.name === issPageValues.VEHICLE_SELECTION || to.name === issPageValues.POLICY_VEHICLES); + if (callSaveSession) { // Forcing a synchronous savesession call here to create the referral for the first time. // AfterEach does not support synchronous calls that block navigation. Which is why this is in the beforeEach method. // This only needs to be called once in a certain location, all other saveSession calls are async in afterEach (except the last one on order submission)