Skip to content

Commit

Permalink
fix: conditions order
Browse files Browse the repository at this point in the history
  • Loading branch information
HagerDakroury committed Jul 17, 2021
1 parent 4442509 commit e1791ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analysis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ io.on("connection", (socket: any) => {
out: 0,
};
}
if (!(meeting in emotions)) {
emotions[meeting] = {};
}

if (student && !emotions[meeting][student]) {
instructors[meeting]["out"]++;
emotions[meeting][student] = "out";
}

if (!(meeting in emotions)) {
emotions[meeting] = {};
}
});

socket.on(
Expand Down

0 comments on commit e1791ea

Please sign in to comment.