From 89020971257f6225f1ae3300169db2400761af61 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 6 Aug 2024 07:43:17 -0600 Subject: [PATCH] Fix spelling --- web/src/api/ws.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/api/ws.tsx b/web/src/api/ws.tsx index 9e16d60a4..94f381ada 100644 --- a/web/src/api/ws.tsx +++ b/web/src/api/ws.tsx @@ -28,7 +28,7 @@ function useValue(): useValueReturn { // main state - const [hasCameraState, setHasCameraStates] = useState(false); + const [hasCameraState, setHasCameraState] = useState(false); const [wsState, setWsState] = useState({}); useEffect(() => { @@ -64,7 +64,7 @@ function useValue(): useValueReturn { }); setWsState({ ...wsState, ...cameraStates }); - setHasCameraStates(true); + setHasCameraState(true); // we only want this to run initially when the config is loaded // eslint-disable-next-line react-hooks/exhaustive-deps }, [wsState]);