Skip to content

Commit

Permalink
fix: check for hiding internal recorder role (#2885)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored May 9, 2024
1 parent 82be1a5 commit e0db451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e0db451

Please sign in to comment.