Skip to content

Commit

Permalink
fix: wrong logged in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
backrunner committed Aug 30, 2024
1 parent 72d2198 commit 9207f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ const isMobile = isMobileDevice(userAgent);
}

// Check if user is logged in
const isLoggedIn = document.body.getAttribute('data-user-logged-in') === 'true';
const isLoggedIn = document.body.hasAttribute('data-user-logged-in');

if (!isLoggedIn) {
localStorage.removeItem('vapidPublicKey');
Expand Down

0 comments on commit 9207f91

Please sign in to comment.