Skip to content

Commit

Permalink
Merge pull request #2730 from ghayman/master
Browse files Browse the repository at this point in the history
Fixed isLoggedIn() - #2724
  • Loading branch information
orkestral authored Apr 30, 2024
2 parents f449d0e + 6afc7a1 commit 04de179
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/wapi/functions/is-logged-in.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export function isLoggedIn(done) {
// Contact always exists when logged in
const isLogged =
window.Store.Contact && window.Store.Contact.checksum !== undefined;
const isLogged = window.Store.Contact && window.Store.Contact.length > 0;

if (done !== undefined) done(isLogged);
return isLogged;
Expand Down

0 comments on commit 04de179

Please sign in to comment.