Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Change websocket mock from empty object to empty class (#3998)

mahmed2000c0c20265742f
diff --git a/web/components/layouts/Main/Main.stories.tsx b/web/components/layouts/Main/Main.stories.tsx
index fccf6329c2..b1d2573d77 100644
--- a/web/components/layouts/Main/Main.stories.tsx
+++ b/web/components/layouts/Main/Main.stories.tsx
@@ -41,7 +41,7 @@ export default meta;
// mock the Websocket to prevent ani webhook calls from being made in storybook
// @ts-ignore
-window.WebSocket = () => {};
+window.WebSocket = class {};
type StateInitializer = (mutableState: MutableSnapshot) => void;