Skip to content

Commit 67ae758

Browse files
committed
Fix tests for unused variable
1 parent 15838ab commit 67ae758

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/usePeer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export function useHostMultiPeerSession<T>( initialState: T): [PeerDataPair<T>[]
174174
const [error, setError] = useState<string>();
175175
const [peer, setPeer] = useState<any>();
176176
const conns = peer?.connections.length;
177+
// @ts-ignore
177178
const [_numConnections, setNumConnections] = useState(conns); // used to force a re-render when the number of connections changes, actual value is not used as peer object has a connections property
178179

179180

0 commit comments

Comments
 (0)