hexlet-codebattle/codebattle

View on GitHub
services/app/apps/codebattle/assets/js/widgets/middlewares/WaitingRoom.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function addWaitingRoomListeners has 100 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const addWaitingRoomListeners = (channel, waitingRoomMachine) => () => {
  const handleWaitingRoomStarted = response => {
    waitingRoomMachine.send(
      channelTopics.waitingRoomStartedTopic,
      { payload: response },

    There are no issues that match your filters.

    Category
    Status