fix linter issue

This commit is contained in:
koray-eren 2022-04-06 11:15:23 +10:00
parent ebe1ae8f12
commit d78056618c

View file

@ -28,7 +28,7 @@ export const searchEmojiForQuery = (query: string): Array<SuggestionDataItem> =>
if (query.length === 0 || !emojiIndex) {
return [];
}
const results1 = emojiIndex.search(":"+query) || [];
const results1 = emojiIndex.search(`:${query}`) || [];
const results2 = emojiIndex.search(query) || [];
const results = [...new Set(results1.concat(results2))];
if (!results || !results.length) {