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; }