Skip to content

Commit

Permalink
refactor: reuse existing var
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Oct 3, 2023
1 parent a992908 commit b2f7974
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export const RoleAccordion = ({
return null;
}

const height = ROW_HEIGHT * (peers.length || peerList.length);
const peersInAccordion = isOffStageRole && isLargeRoom ? peers : peerList;
const height = ROW_HEIGHT * peersInAccordion.length;
const hasNext = total > peersInAccordion.length;

if (peersInAccordion.length === 0) {
Expand Down

0 comments on commit b2f7974

Please sign in to comment.