diff --git a/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx b/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx index 612dba2428..20fe76e1b2 100644 --- a/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx @@ -50,7 +50,7 @@ export const RoleAccordion = ({ const isOffStageRole = roleName && offStageRoles.includes(roleName); useEffect(() => { - if (!isOffStageRole) { + if (!isOffStageRole || !isLargeRoom) { return; } loadPeers(); @@ -58,7 +58,7 @@ export const RoleAccordion = ({ loadPeers(); }, ITER_TIMER); return () => clearInterval(interval); - }, [isOffStageRole]); //eslint-disable-line + }, [isOffStageRole, isLargeRoom]); //eslint-disable-line if (!showAcordion || (isHandRaisedAccordion && filter?.search) || (peerList.length === 0 && filter?.search)) { return null;