Fix empty chat from causing error
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
55fda983ea
commit
8da3f909ef
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user