X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=a5db14649b22adf5598fdba44bfe07f71e167c83;hp=dc6b817efe80482e22353ce29b85dd18d87aa16c;hb=9a3049f3a48fa4b3627ef26ccdf213a8e550d478;hpb=9ddaf8da8743c50b9019888a82d84392913c60c9 diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index dc6b817e..a5db1464 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -62,6 +62,7 @@ export default { }, game: { //passed to BaseGame players:[{name:""},{name:""}], + chats: [], rendered: false, }, virtualClocks: [0, 0], //initialized with true game.clocks @@ -419,6 +420,8 @@ export default { this.vr = new V(game.fen); const gtype = (game.cadence.indexOf('d') >= 0 ? "corr" : "live"); const tc = extractTime(game.cadence); + if (!game.chats) + game.chats = []; //live games don't have chat history if (gtype == "corr") { if (game.players[0].color == "b")