mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add missing type annotation.
Caught by newer versions of typescript.
This commit is contained in:
parent
8ff943552b
commit
8126635bd9
@ -8,7 +8,7 @@ export const useEventStream = () => {
|
|||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
const onMessage = useCallback(
|
const onMessage = useCallback(
|
||||||
(message) => {
|
(message: MessageEvent) => {
|
||||||
handleStreamedEvents(dispatch, JSON.parse(message.data));
|
handleStreamedEvents(dispatch, JSON.parse(message.data));
|
||||||
},
|
},
|
||||||
[dispatch]
|
[dispatch]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user