1
0

Fix empty chat from causing error

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-02-28 20:27:53 -08:00
parent 55fda983ea
commit 8da3f909ef

View File

@ -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);