From 82926083651ca392bdef98d00721b152505192d9 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 28 Mar 2025 17:59:35 +0100 Subject: [PATCH] chore: fix HLC comparison This change was made by biome, but it breaks unittests, not sure why but let's revert for now. --- umap/static/umap/js/modules/sync/hlc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/sync/hlc.js b/umap/static/umap/js/modules/sync/hlc.js index fb86b236..f229b4e4 100644 --- a/umap/static/umap/js/modules/sync/hlc.js +++ b/umap/static/umap/js/modules/sync/hlc.js @@ -91,7 +91,7 @@ export class HybridLogicalClock { if (now > local.walltime && now > remote.walltime) { nextValue = { ...local, walltime: now } - } else if (local.walltime === remote.walltime) { + } else if (local.walltime == remote.walltime) { const nn = Math.max(local.nn, remote.nn) + 1 nextValue = { ...local, nn: nn } } else if (remote.walltime > local.walltime) {