Remove useless code

This commit is contained in:
Tainan Felipe 2018-12-17 13:48:31 -02:00
parent b7f5a1d73b
commit ff44815bdc

View File

@ -159,7 +159,7 @@ class BreakoutRoom extends Component {
onAssignRandomly() {
const { numberOfRooms } = this.state;
return this.getUserByRoom(0)
.forEach(user => this.changeUserRoom(user.userId, Math.floor(Math.random() * (numberOfRooms - 1 + 1) + 1)));
.forEach(user => this.changeUserRoom(user.userId, Math.floor(Math.random() * (numberOfRooms) + 1)));
}
setRoomUsers() {