Fix incorrect default websocket value

This commit is contained in:
Nicolas Mowen 2025-03-03 15:22:40 -07:00
parent 1058b6eb2b
commit d94c716ca2

View File

@ -174,7 +174,7 @@ export function useEnabledState(camera: string): {
value: { payload },
send,
} = useWs(`${camera}/enabled/state`, `${camera}/enabled/set`);
return { payload: payload as ToggleableSetting, send };
return { payload: (payload ?? "ON") as ToggleableSetting, send };
}
export function useDetectState(camera: string): {