diff --git a/web/src/api/ws.tsx b/web/src/api/ws.tsx index a8cedf953..7ca9ae69d 100644 --- a/web/src/api/ws.tsx +++ b/web/src/api/ws.tsx @@ -46,7 +46,7 @@ function useValue(): useValueReturn { const cameraActivity: { [key: string]: object } = JSON.parse(activityValue); - if (!cameraActivity) { + if (Object.keys(cameraActivity).length === 0) { return; }