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.
1 parent f449d0e commit 6afc7a1Copy full SHA for 6afc7a1
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