Skip to content

Commit 04de179

Browse files
authored
Merge pull request #2730 from ghayman/master
Fixed isLoggedIn() - #2724
2 parents f449d0e + 6afc7a1 commit 04de179

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/wapi/functions/is-logged-in.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export function isLoggedIn(done) {
22
// Contact always exists when logged in
3-
const isLogged =
4-
window.Store.Contact && window.Store.Contact.checksum !== undefined;
3+
const isLogged = window.Store.Contact && window.Store.Contact.length > 0;
54

65
if (done !== undefined) done(isLogged);
76
return isLogged;

0 commit comments

Comments
 (0)