diff --git a/automation/compat/index.js b/automation/compat/index.js index 3440a74a9..941cae75f 100644 --- a/automation/compat/index.js +++ b/automation/compat/index.js @@ -59,7 +59,7 @@ console.info = function () { // Extract the session id metric. const sessionInfo = /"session_id":".{36}"/.exec(userLifetimeMetrics); if (!!sessionInfo.length) { - const currSessionId = sessionInfo[0]?.split(":")?.[1]?.split("\"")?.[1]; + const currSessionId = sessionInfo[0].split(":")[1].split("\"")[1]; if (!!sessionId) { if (currSessionId !== sessionId) { var elem = document.getElementById("session_msg");