From 22c2acf0dafbe883cef0546130ca87b144ff5751 Mon Sep 17 00:00:00 2001 From: Shawn Date: Mon, 25 May 2026 21:14:38 -0400 Subject: [PATCH] fix: badge shows 'matched'/'no match' instead of machine ID --- static/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 4a0d5d7..3ae8265 100644 --- a/static/index.html +++ b/static/index.html @@ -567,7 +567,7 @@ function lookupPrevAsset(p) { function renderPrevCard(p) { const hasMatch = p.machine_id ? 'matched' : 'no-match'; - const matchText = p.machine_id || (p.ocr_match_5plus ? 'digits found' : 'no match'); + const matchText = p.machine_id ? 'matched' : (p.ocr_match_5plus ? 'digits found' : 'no match'); const engine = p.ocr_engine || 'tesseract'; const engCls = engine === 'llm' || engine === 'llm_batch' ? 'llm' : engine === 'google' ? 'llm' : 'tesseract'; const time = p.created_at ? new Date(p.created_at + 'Z').toLocaleString() : ''; @@ -671,7 +671,7 @@ function saveMachineIdInline(input, photoId, cancel) { if (card) { const badge = card.querySelector('.match-badge'); if (badge) { - badge.textContent = val; + badge.textContent = 'matched'; badge.className = 'match-badge matched'; } }