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 }