Fix spelling

This commit is contained in:
Nicolas Mowen 2024-08-06 07:43:17 -06:00
parent bd1ebcc441
commit 8902097125

View File

@ -28,7 +28,7 @@ function useValue(): useValueReturn {
// main state // main state
const [hasCameraState, setHasCameraStates] = useState(false); const [hasCameraState, setHasCameraState] = useState(false);
const [wsState, setWsState] = useState<WsState>({}); const [wsState, setWsState] = useState<WsState>({});
useEffect(() => { useEffect(() => {
@ -64,7 +64,7 @@ function useValue(): useValueReturn {
}); });
setWsState({ ...wsState, ...cameraStates }); setWsState({ ...wsState, ...cameraStates });
setHasCameraStates(true); setHasCameraState(true);
// we only want this to run initially when the config is loaded // we only want this to run initially when the config is loaded
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [wsState]); }, [wsState]);