From 680c425c995a5656106607877b1ee5c5892ac5b4 Mon Sep 17 00:00:00 2001 From: Alexander Harding <2166114+aeharding@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:24:11 -0500 Subject: [PATCH] Fix G-AIRMETs (#153) --- src/features/alerts/alertsSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/alerts/alertsSlice.ts b/src/features/alerts/alertsSlice.ts index 95e4681..e8d94a6 100644 --- a/src/features/alerts/alertsSlice.ts +++ b/src/features/alerts/alertsSlice.ts @@ -99,7 +99,7 @@ export function isISigmetAlert(alert: Alert): alert is ISigmetFeature { } export function isGAirmetAlert(alert: Alert): alert is GAirmetFeature { - return "data" in alert.properties && alert.properties.data === "GAIRMET"; + return "product" in alert.properties; } export function getAlertStart(alert: Alert) {