diff --git a/src/router/index.js b/src/router/index.js index ec30d5dc..a45182d6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -163,8 +163,12 @@ if (callSaveSession) { // NOTE: This call should be creating the referral number. After this point in the site flow, referral number is critical for several pieces of logic and logging. // Therefore, we want to force a bailout here if it errors out. showIssLoadingModal(true); - await saveSession({ shouldAwaitSaveSessionQueue: true, bailoutOnError: true }); - showIssLoadingModal(false); + try { + await saveSession({ shouldAwaitSaveSessionQueue: true, bailoutOnError: true }); + } + finally { + showIssLoadingModal(false); + } } const toQueryPage = to.query?.issPage;