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) {
|
for (const emoji of list) {
|
||||||
const indexOfKeyword = emoji.displayText.toLowerCase().indexOf(keywordLowercase)
|
const indexOfKeyword = emoji.displayText.toLowerCase().indexOf(keywordLowercase)
|
||||||
if (indexOfKeyword > -1) {
|
if (indexOfKeyword > -1) {
|
||||||
if (!Array.isArray(orderedEmojiList[keywordLowercase])) {
|
if (!Array.isArray(orderedEmojiList[indexOfKeyword])) {
|
||||||
orderedEmojiList[keywordLowercase] = []
|
orderedEmojiList[indexOfKeyword] = []
|
||||||
}
|
}
|
||||||
orderedEmojiList[keywordLowercase].push(emoji)
|
orderedEmojiList[indexOfKeyword].push(emoji)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return orderedEmojiList.flat()
|
return orderedEmojiList.flat()
|
||||||
|
|
Loading…
Reference in a new issue