Fix chat history not displaying

This commit is contained in:
James Lyne 2021-01-07 22:39:26 +00:00
parent ac35a03e62
commit 15360b83df

View File

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