We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f449d0e + 6afc7a1 commit 04de179Copy full SHA for 04de179
src/lib/wapi/functions/is-logged-in.js
@@ -1,7 +1,6 @@
1
export function isLoggedIn(done) {
2
// Contact always exists when logged in
3
- const isLogged =
4
- window.Store.Contact && window.Store.Contact.checksum !== undefined;
+ const isLogged = window.Store.Contact && window.Store.Contact.length > 0;
5
6
if (done !== undefined) done(isLogged);
7
return isLogged;
0 commit comments