Yes yes, eslint

pull/21833/head
David Baker 2019-05-14 12:11:07 +01:00
parent 040424f462
commit 4aec75ef69
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
/**