diff --git a/dashboard/app/components/alerts/AlertToast.jsx b/dashboard/app/components/alerts/AlertToast.jsx index 207c6ef..b2c7555 100644 --- a/dashboard/app/components/alerts/AlertToast.jsx +++ b/dashboard/app/components/alerts/AlertToast.jsx @@ -3,6 +3,7 @@ import { useEffect, useRef } from 'react'; import { toast } from 'sonner'; import { useAlertStore } from '../../store/alertStore.js'; +import { useDemoInject } from '../../hooks/useDemoInject.js'; const TYPE_ICONS = { WEATHER: '🌊', @@ -20,6 +21,8 @@ export default function AlertToastController() { const disruptions = useAlertStore((s) => s.disruptions); const prevLengthRef = useRef(null); const seenIdsRef = useRef(new Set()); + const activeInjectionsRef = useRef(new Set()); + const { injectDisruption } = useDemoInject(null); useEffect(() => { // Record initial snapshot as baseline so existing disruptions do not trigger toasts. @@ -68,7 +71,15 @@ export default function AlertToastController() {