From b5e1ba72d0715c843cbe7224ccf009ababe71739 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 27 May 2025 12:10:26 +0200 Subject: [PATCH] Scrolled to bottom fix. --- src/snek/static/chat-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index 2d84658..8909cc7 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -74,7 +74,7 @@ class ChatInputComponent extends HTMLElement { authors.forEach(author => { const lowerAuthor = author.toLowerCase(); - const distance = this.levenshteinDistance(lowerMention, lowerAuthor); + let distance = this.levenshteinDistance(lowerMention, lowerAuthor); if(!this.isSubsequence(lowerMention,lowerAuthor)) { distance += 1 }