Skip to content

Commit

Permalink
Fix for !entry.is_synced || true
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien LeBlanc committed Aug 14, 2024
1 parent 22208d8 commit 775ec04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export const useIndexStore = defineStore('store', () => {
}
async function toggleEntrySynced(entry: Entry) {
await updateDoc(doc(db, 'entries', entry.id), {
is_synced: !entry.is_synced || true,
is_synced: !entry.is_synced,
});
}
async function addProject(option: Project) {
Expand Down

0 comments on commit 775ec04

Please sign in to comment.