Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/js/community-stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
];

let stories = JSON.parse(localStorage.getItem('bibliodrift_community_stories')) || defaultStories;
let stories = (JSON.parse(localStorage.getItem('bibliodrift_community_stories') ?? "null") ?? null) || defaultStories;

// Save to local storage
const saveStories = () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

async function getPendingLibrarySyncCount(userId) {
if (!window.db?.syncQueue) return 0;
if (userId == null) {
if (userId === null) {
return await window.db.syncQueue.count();
}
return await window.db.syncQueue.where('userId').equals(userId).count();
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/landing-contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,6 @@
}

refreshContributorSource(false);
setInterval(()=> refreshContributorSource(true), REFRESH_INTERVAL_MS);
clearInterval(window.__interval); window.__interval = setInterval(()=> refreshContributorSource(true), REFRESH_INTERVAL_MS);
});
})();
2 changes: 1 addition & 1 deletion frontend/js/nearby-bookstores.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function handleLocationSuccess(position) {
const longitude =
position.coords.longitude;

locationStatus.innerHTML = `
locationStatus.textContent = `

<span class="location-success">

Expand Down