Skip to content

Commit

Permalink
fix: code
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Oct 5, 2023
1 parent 536db90 commit 41ebb23
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ import { usePaginatedParticipants } from '@100mslive/react-sdk';

const PaginatedPeers = () => {
const { peers, total, loadPeers, loadMorePeers } = usePaginatedParticipants({ role: roleName, limit: 20 });
// to check if there are more peers
const hasNext = total > peers.length;

useEffect(() => {
loadPeers();
Expand Down

0 comments on commit 41ebb23

Please sign in to comment.