mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-14 20:44:40 +00:00
fixed copy-pasting leftovers
This commit is contained in:
parent
cff202241b
commit
bb59b8ee56
1 changed files with 3 additions and 3 deletions
|
@ -15,10 +15,10 @@ const filterByKeyword = (list, keyword = '') => {
|
|||
for (const emoji of list) {
|
||||
const indexOfKeyword = emoji.displayText.toLowerCase().indexOf(keywordLowercase)
|
||||
if (indexOfKeyword > -1) {
|
||||
if (!Array.isArray(orderedEmojiList[keywordLowercase])) {
|
||||
orderedEmojiList[keywordLowercase] = []
|
||||
if (!Array.isArray(orderedEmojiList[indexOfKeyword])) {
|
||||
orderedEmojiList[indexOfKeyword] = []
|
||||
}
|
||||
orderedEmojiList[keywordLowercase].push(emoji)
|
||||
orderedEmojiList[indexOfKeyword].push(emoji)
|
||||
}
|
||||
}
|
||||
return orderedEmojiList.flat()
|
||||
|
|
Loading…
Reference in a new issue