diff --git a/packages/roomkit-react/src/Prebuilt/components/Footer/ParticipantList.tsx b/packages/roomkit-react/src/Prebuilt/components/Footer/ParticipantList.tsx index d24485c900..0747fcb219 100644 --- a/packages/roomkit-react/src/Prebuilt/components/Footer/ParticipantList.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/Footer/ParticipantList.tsx @@ -324,12 +324,15 @@ const HandRaisedAccordionParticipantActions = ({ peerId, role }: { peerId: strin peerId, role, }); + if (!shouldShowStageRoleChange) { + return null; + } return ( <> - {shouldShowStageRoleChange && !isInStage && ( + {!isInStage && ( diff --git a/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx b/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx index 34269539a9..5bb8bf5c80 100644 --- a/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/Footer/RoleAccordion.tsx @@ -149,18 +149,17 @@ export const RoleAccordion = ({ ) : null} - {isHandRaisedAccordion && ( + {isHandRaisedAccordion && canBringToStage && ( <> - {canBringToStage && ( - - )} + + )}