diff --git a/src/App.tsx b/src/App.tsx index 216d900..44e9070 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -23,8 +23,9 @@ import { env } from '@/config/environment'; // Person detection alert overlay - shows for 30 seconds when person detected on any configured camera function PersonAlert({ cameraName, onClose }: { cameraName: string; onClose: () => void }) { const cameras = useSettingsStore((state) => state.config.cameras); + const cameraLower = cameraName.toLowerCase(); const camera = cameras.find( - (c) => c.frigateCamera?.toLowerCase() === cameraName || c.name.toLowerCase() === cameraName, + (c) => c.frigateCamera?.toLowerCase() === cameraLower || c.name.toLowerCase() === cameraLower, ); useEffect(() => {