From c608f0b4c2d84cd7f9e40f6ea08127374011fdb1 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Mon, 26 Sep 2022 15:02:22 -0400 Subject: [PATCH] client: fix lints in about.emojis.vue --- packages/client/src/pages/about.emojis.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/pages/about.emojis.vue b/packages/client/src/pages/about.emojis.vue index 76ffcb953..ec5b15f17 100644 --- a/packages/client/src/pages/about.emojis.vue +++ b/packages/client/src/pages/about.emojis.vue @@ -33,14 +33,14 @@ import { emojiCategories, instance } from '@/instance'; let q: string = $ref(''); let searchEmojis: null | Record[] = $ref(null); -function search() { +function search(): void { if (q === '') { searchEmojis = null; } else { - searchEmojis = instance.emojis.filter(emoji => emoji.name.includes(this.q) || emoji.aliases.includes(this.q)); + searchEmojis = instance.emojis.filter(emoji => emoji.name.includes(q) || emoji.aliases.includes(q)); } } -watch(q, search); +watch($$(q), search);