Fix lints

This commit is contained in:
Robin committed 2024-06-04 11:20:25 -04:00
1 parent 07ce272e9f
commit 70fdc68b13
23 files changed
+60 -38

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ function useObservableState<T>(
// observable state doesn't run in SSR
if (typeof window === "undefined" || !observable) return;
const subscription = observable.subscribe(setState);
return () => subscription.unsubscribe();
return (): void => subscription.unsubscribe();
}, [observable]);
return state;
}
+1 -1
View File
@@ -192,7 +192,7 @@ export function useECConnectionState(
livekitRoom.on(RoomEvent.ConnectionStateChanged, onConnStateChanged);
}
return () => {
return (): void => {
if (oldRoom)
oldRoom.off(RoomEvent.ConnectionStateChanged, onConnStateChanged);
};