simple one line fixes

This commit is contained in:
ansuz
2018-07-06 10:28:41 +02:00
parent ab04a7cb46
commit 0c3b898000
3 changed files with 4 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ define([
localStorage[Constants.userHashKey] = sHash;
};
LocalStore.getBlockHash = function () {
var getBlockHash = LocalStore.getBlockHash = function () {
return localStorage[Constants.blockHashKey];
};
@@ -71,7 +71,8 @@ define([
};
LocalStore.isLoggedIn = function () {
return typeof getUserHash() === "string";
return typeof getBlockHash() === 'string' ||
typeof getUserHash() === "string";
};