From 10b02472911fdfad437c610072b5e67af3e62a49 Mon Sep 17 00:00:00 2001 From: gabek Date: Sun, 10 Oct 2021 04:00:33 +0000 Subject: [PATCH] Prettified Code! --- webroot/js/components/chat/chat.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webroot/js/components/chat/chat.js b/webroot/js/components/chat/chat.js index 97afc7fb6..e8452306a 100644 --- a/webroot/js/components/chat/chat.js +++ b/webroot/js/components/chat/chat.js @@ -213,7 +213,9 @@ export default class Chat extends Component { }); updatedMessageList.splice(insertAtIndex + 1, 0, convertedMessage); if (updatedMessageList.length > 300) { - updatedMessageList = updatedMessageList.slice(Math.max(updatedMessageList.length - 300, 0)); + updatedMessageList = updatedMessageList.slice( + Math.max(updatedMessageList.length - 300, 0) + ); } this.setState({ messages: updatedMessageList,