Merge pull request #15620 from JoVictorNunes/sonar-warnings-Aug-31
fix: SonarCloud warnings
This commit is contained in:
commit
b8afe76837
@ -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