From 15360b83df442672a2cf59bf0a1144b7b4ea706c Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 7 Jan 2021 22:39:26 +0000 Subject: [PATCH] Fix chat history not displaying --- src/components/ChatBox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ChatBox.vue b/src/components/ChatBox.vue index 4c85315..f8c4411 100644 --- a/src/components/ChatBox.vue +++ b/src/components/ChatBox.vue @@ -37,7 +37,7 @@ componentSettings = computed(() => store.state.components.chatBox), messages = computed(() => { if(componentSettings.value!.messageHistory) { - return store.state.chat.messages.slice(componentSettings.value!.messageHistory); + return store.state.chat.messages.slice(0, componentSettings.value!.messageHistory); } else { return store.state.chat.messages; }