diff --git a/components/calendar/event-detail-popover.tsx b/components/calendar/event-detail-popover.tsx index 86f1f19f..9518cabd 100644 --- a/components/calendar/event-detail-popover.tsx +++ b/components/calendar/event-detail-popover.tsx @@ -88,7 +88,7 @@ function formatDurationDisplay(minutes: number): string { function getAlertLabel(event: CalendarEvent, t: ReturnType): string | null { if (!event.alerts) return null; const first = Object.values(event.alerts)[0]; - if (!first || first.trigger["@type"] !== "OffsetTrigger") return null; + if (!first || !first.trigger || first.trigger["@type"] !== "OffsetTrigger") return null; const offset = first.trigger.offset; if (offset === "PT0S") return t("alerts.at_time"); const minMatch = offset.match(/-?PT?(\d+)M$/);