The current active mentors will give multiple instance of the same user object
Closed this issue · 0 comments
GalenWong commented
The issue comes from socket. I discovered if I open two mentorQ tabs, the socket will register two connected users with two same user objects, leading to an overcount of the number of mentors.
To solution I guess is to use a set instead of an array.
Writing this issue down so I can fix it later XD.