diff --git a/src/Lifecycle.js b/src/Lifecycle.js index ca4c7c48f8..0e2389fd1c 100644 --- a/src/Lifecycle.js +++ b/src/Lifecycle.js @@ -131,8 +131,8 @@ export function getStoredSessionOwner() { * for a real user. If there is no stored session, return null. */ export function getStoredSessionIsGuest() { - const {hsUrl, isUrl, accessToken, userId, deviceId, isGuest} = _getLocalStorageSessionVars(); - return hsUrl && userId && accessToken ? isGuest : null; + const sessVars = _getLocalStorageSessionVars(); + return sessVars.hsUrl && sessVars.userId && sessVars.accessToken ? sessVars.isGuest : null; } /**