fix: SonarCloud warnings
This commit is contained in:
parent
85a9138ac6
commit
916a14e1f9
@ -12,8 +12,8 @@ const ROLE_MODERATOR = Meteor.settings.public.user.role_moderator;
|
||||
|
||||
const CursorContainer = (props) => {
|
||||
const { cursorX, cursorY, presenter, uid, isViewersCursorLocked } = props;
|
||||
const usingUsersContext = useContext(UsersContext);
|
||||
if (cursorX > 0 && cursorY > 0) {
|
||||
const usingUsersContext = useContext(UsersContext);
|
||||
const { users } = usingUsersContext;
|
||||
const role = users[Auth.meetingID][Auth.userID].role;
|
||||
const userId = users[Auth.meetingID][Auth.userID].userId;
|
||||
|
@ -9,13 +9,12 @@ const SidebarContentContainer = () => {
|
||||
const sidebarContentOutput = layoutSelectOutput((i) => i.sidebarContent);
|
||||
const layoutContextDispatch = layoutDispatch();
|
||||
const { sidebarContentPanel } = sidebarContentInput;
|
||||
|
||||
if (sidebarContentOutput.display === false) return null;
|
||||
|
||||
const usingUsersContext = useContext(UsersContext);
|
||||
const { users } = usingUsersContext;
|
||||
const amIPresenter = users[Auth.meetingID][Auth.userID].presenter;
|
||||
|
||||
if (sidebarContentOutput.display === false) return null;
|
||||
|
||||
return (
|
||||
<SidebarContent
|
||||
{...sidebarContentOutput}
|
||||
|
Loading…
Reference in New Issue
Block a user