diff --git a/client/src/Table.js b/client/src/Table.js index 77eed3e..9989191 100755 --- a/client/src/Table.js +++ b/client/src/Table.js @@ -214,6 +214,7 @@ const Chat = ({ table }) => { }); if (table.game && table.game.chat && + table.game.chat.length && table.game.chat[table.game.chat.length - 1].date !== latest) { setLatest(table.game.chat[table.game.chat.length - 1].date); setAutoscroll(true);