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;