diff --git a/frontend/src/lib/ui/map.ts b/frontend/src/lib/ui/map.ts index 3d8cf68..110fbb3 100644 --- a/frontend/src/lib/ui/map.ts +++ b/frontend/src/lib/ui/map.ts @@ -602,6 +602,10 @@ window.ATMap = (function () { items.sort(function (a, b) { return a.d - b.d; }); var near = items.slice(0, opts.limit || 8); renderNear(resultEl, near, me, opts); + /* ปลดล็อกปุ่มหลังหาป้ายเสร็จ — ผู้ใช้เดินไปที่ใหม่แล้วกดซ้ำได้ */ + button.disabled = false; + }).catch(function () { + button.disabled = false; }); }, function () { button.disabled = false; diff --git a/frontend/src/lib/ui/stops.nearme.ts b/frontend/src/lib/ui/stops.nearme.ts index 497a8e4..070c41c 100644 --- a/frontend/src/lib/ui/stops.nearme.ts +++ b/frontend/src/lib/ui/stops.nearme.ts @@ -1,9 +1,34 @@ // @ts-nocheck /* Ported from the inline