From e5d93dea31a74cec454df10292329fa541af6a9b Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Tue, 4 Mar 2025 10:53:54 -0700 Subject: [PATCH] Update useBusterWebSocket.tsx --- .../BusterWebSocketProvider/useBusterWebSocket.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/context/BusterWebSocket/BusterWebSocketProvider/useBusterWebSocket.tsx b/web/src/context/BusterWebSocket/BusterWebSocketProvider/useBusterWebSocket.tsx index fea3beefc..cc991aa2d 100644 --- a/web/src/context/BusterWebSocket/BusterWebSocketProvider/useBusterWebSocket.tsx +++ b/web/src/context/BusterWebSocket/BusterWebSocketProvider/useBusterWebSocket.tsx @@ -166,7 +166,7 @@ const useBusterSocketListeners = (props: { }); const getCurrentListeners = useMemoizedFn((route: BusterSocketResponseRoute | string) => { - return listeners.current[route as string] || []; + return listeners.current[route] || []; }); const busterSocket: BusterSocket = useMemo(