mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
fix linter issue
This commit is contained in:
parent
ebe1ae8f12
commit
d78056618c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue