mirror of https://github.com/buster-so/buster.git
Update useBusterWebSocket.tsx
This commit is contained in:
parent
813b05c18a
commit
e5d93dea31
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue