Skip to content

Commit

Permalink
liinted script
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyubibrahimi committed Nov 6, 2023
1 parent e902980 commit 5ce8487
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/web/components/NewQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type SupabaseRealtimePayload<T = any> = {
};



function YouTubeThumbnail({ url }: { url: string }) {
const videoId = url.split("v=")[1]?.split("&")[0];
if (!videoId) return null;
Expand Down Expand Up @@ -118,7 +117,6 @@ export default function NewQuery() {
}
};


useEffect(() => {
if (!card) {
return;
Expand All @@ -138,9 +136,8 @@ export default function NewQuery() {
return () => {
channel.unsubscribe();
};
}, [card]); /
}, [card]);


const submitQuery = async (e?: React.FormEvent<HTMLFormElement>) => {
e?.preventDefault();
if (query.length <= 10) return;
Expand Down

0 comments on commit 5ce8487

Please sign in to comment.