Add missing type annotation.

Caught by newer versions of typescript.
This commit is contained in:
Dan Albert 2022-09-27 22:00:55 -07:00 committed by Raffson
parent 8ff943552b
commit 8126635bd9
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -8,7 +8,7 @@ export const useEventStream = () => {
const dispatch = useAppDispatch();
const onMessage = useCallback(
(message) => {
(message: MessageEvent) => {
handleStreamedEvents(dispatch, JSON.parse(message.data));
},
[dispatch]