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:
@@ -346,8 +346,8 @@ function PreflightSummary({ worker }: { worker: Worker }) {
|
|||||||
const fingerprint = worker.fingerprint_data;
|
const fingerprint = worker.fingerprint_data;
|
||||||
const httpError = worker.preflight_http_error;
|
const httpError = worker.preflight_http_error;
|
||||||
const httpMs = worker.preflight_http_ms;
|
const httpMs = worker.preflight_http_ms;
|
||||||
const geoState = worker.current_state;
|
// Geo from current_city/state columns, or fallback to fingerprint detected location
|
||||||
// City from current_city column, or fallback to fingerprint detected location
|
const geoState = worker.current_state || fingerprint?.detectedLocation?.region;
|
||||||
const geoCity = worker.current_city || fingerprint?.detectedLocation?.city;
|
const geoCity = worker.current_city || fingerprint?.detectedLocation?.city;
|
||||||
|
|
||||||
// Build detailed tooltip
|
// Build detailed tooltip
|
||||||
|
|||||||
Reference in New Issue
Block a user