mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-03 05:54:22 +08:00
setting usergraph to an empty object if undefined
This commit is contained in:
parent
c2b3f998ea
commit
f560f7c82e
1 changed files with 1 additions and 0 deletions
|
|
@ -960,6 +960,7 @@ MP.socket.on("mp_room_user_finished", (data) => {
|
|||
$(`.tribeResult .player[socketId=${data.socketId}]`).addClass("failed");
|
||||
}
|
||||
|
||||
if (MP.room.userGraphs === undefined) MP.room.userGraphs = {};
|
||||
MP.room.userGraphs[data.socketId] = {
|
||||
data: data.result,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue