diff --git a/src/App.tsx b/src/App.tsx index 91bb84b..d50e854 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -44,7 +44,7 @@ function App() { useEffect(() => { if (alarmSet && distance > stopDistance) { setAlarmSet(false); - alarmPlaying(false); + setAlarmPlaying(false); setAlarm(null); } }, [distance, alarmSet]);