- const mycolor = [undefined, "w", "b"][myIdx + 1]; //undefined for observers
- // Live games before 26/03/2020 don't have chat history. TODO: remove next line
- if (!game.chats) game.chats = [];
+ // "mycolor" is undefined for observers
+ const mycolor = [undefined, "w", "b"][myIdx + 1];
+ // Live games before 26/03/2020 don't have chat history:
+ if (!game.chats) game.chats = []; //TODO: remove line