Fix AMOS runway observations

This commit is contained in:
2569718930@qq.com
2026-05-10 19:20:52 +08:00
parent 5512ebf133
commit f4f613ad02
3 changed files with 203 additions and 50 deletions
@@ -39,7 +39,7 @@ export function AmosRunwayPanel({
// Fallback: single-card METAR observation for non-AMOS airports
if (!hasAmosRunway) {
if (!airportCurrent?.temp && !airportCurrent?.wind_speed_kt) return null;
if (airportCurrent?.temp == null && airportCurrent?.wind_speed_kt == null) return null;
const sourceLabel = airportCurrent?.source_label || (isEn ? "METAR" : "机场报文");
const staleNote = airportCurrent?.stale_for_today
? isEn ? " (stale)" : "(过旧)"