Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: conflicts recalculation conditional

thecodrr6dfaf3abf514
diff --git a/packages/core/api/conflicts.js b/packages/core/api/conflicts.js
index 70922b67b..8ae0cdce3 100644
--- a/packages/core/api/conflicts.js
+++ b/packages/core/api/conflicts.js
@@ -10,7 +10,7 @@ class Conflicts {
}
async recalculate() {
- if (this._db.notes.conflicted.length < 0) {
+ if (this._db.notes.conflicted.length <= 0) {
await this._db.context.write("hasConflicts", false);
}
}