From 5ce848721850456750aa22a5ccbb72a4cd5d860d Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Sun, 5 Nov 2023 18:09:48 -0600 Subject: [PATCH] liinted script --- packages/web/components/NewQuery.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/web/components/NewQuery.tsx b/packages/web/components/NewQuery.tsx index 30c74f6a..127191f1 100644 --- a/packages/web/components/NewQuery.tsx +++ b/packages/web/components/NewQuery.tsx @@ -16,7 +16,6 @@ type SupabaseRealtimePayload = { }; - function YouTubeThumbnail({ url }: { url: string }) { const videoId = url.split("v=")[1]?.split("&")[0]; if (!videoId) return null; @@ -118,7 +117,6 @@ export default function NewQuery() { } }; - useEffect(() => { if (!card) { return; @@ -138,9 +136,8 @@ export default function NewQuery() { return () => { channel.unsubscribe(); }; - }, [card]); / + }, [card]); - const submitQuery = async (e?: React.FormEvent) => { e?.preventDefault(); if (query.length <= 10) return;