diff --git a/packages/roomkit-react/src/Prebuilt/components/RoleChangeModal.tsx b/packages/roomkit-react/src/Prebuilt/components/RoleChangeModal.tsx index 4a6b364c21..1461a87660 100644 --- a/packages/roomkit-react/src/Prebuilt/components/RoleChangeModal.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/RoleChangeModal.tsx @@ -40,7 +40,7 @@ const RoleChangeContent = ({ isMobile?: boolean; }) => { const roles = useHMSStore(selectAvailableRoleNames).filter( - role => role !== peer?.roleName || role !== '__internal_recorder', + role => role !== peer?.roleName && role !== '__internal_recorder', ); const [selectedRole, setRole] = useState(roles.filter(role => role !== peer?.roleName)?.[0] || peer?.roleName); const hmsActions = useHMSActions();