From c3131564e6e44a9b757333fa63600c2cedfd39b9 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 11 May 2026 12:50:11 +0100 Subject: [PATCH] fix: Correct logical condition for better OCR candidate selection --- atlas/templates/atlas/new_uploads.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atlas/templates/atlas/new_uploads.html b/atlas/templates/atlas/new_uploads.html index 9586535d..19488684 100644 --- a/atlas/templates/atlas/new_uploads.html +++ b/atlas/templates/atlas/new_uploads.html @@ -987,8 +987,8 @@ const reasons = getOcrPhiReasons(text); const isBetter = reasons.length > bestReasons.length - || (reasons.length === bestReasons.length && text.length > bestText.length) - || (reasons.length === bestReasons.length && text.length === bestText.length && confidence > bestConfidence); + || (reasons.length === bestReasons.length && text.length > bestText.length) + || (reasons.length === bestReasons.length && text.length === bestText.length && confidence > bestConfidence); if (isBetter) { bestText = text;