fix(ui): Fallback to fingerprint region for worker geo display

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 <noreply@anthropic.com>
This commit is contained in:
Kelly
2025-12-13 20:34:50 -07:00
parent 2d631dfad0
commit b51ba17d32

View File

@@ -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