From b51ba17d32618be90f5312da1d5ab16e4ab9944e Mon Sep 17 00:00:00 2001 From: Kelly Date: Sat, 13 Dec 2025 20:34:50 -0700 Subject: [PATCH] fix(ui): Fallback to fingerprint region for worker geo display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit geoState was only using current_state column which is often null. Now falls back to fingerprint.detectedLocation.region like geoCity does. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- cannaiq/src/pages/WorkersDashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cannaiq/src/pages/WorkersDashboard.tsx b/cannaiq/src/pages/WorkersDashboard.tsx index 6ef1842e..513ac366 100644 --- a/cannaiq/src/pages/WorkersDashboard.tsx +++ b/cannaiq/src/pages/WorkersDashboard.tsx @@ -346,8 +346,8 @@ function PreflightSummary({ worker }: { worker: Worker }) { const fingerprint = worker.fingerprint_data; const httpError = worker.preflight_http_error; const httpMs = worker.preflight_http_ms; - const geoState = worker.current_state; - // City from current_city column, or fallback to fingerprint detected location + // Geo from current_city/state columns, or fallback to fingerprint detected location + const geoState = worker.current_state || fingerprint?.detectedLocation?.region; const geoCity = worker.current_city || fingerprint?.detectedLocation?.city; // Build detailed tooltip