From 8f67a695a70ea0854f788485e8cf9fafcd9b6cd1 Mon Sep 17 00:00:00 2001 From: Djobbo Date: Fri, 4 Oct 2024 20:10:45 +0000 Subject: [PATCH] db destroyer --- app/hooks/stats/usePlayerSearch.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/hooks/stats/usePlayerSearch.ts b/app/hooks/stats/usePlayerSearch.ts index 15127983..5a9bbac6 100644 --- a/app/hooks/stats/usePlayerSearch.ts +++ b/app/hooks/stats/usePlayerSearch.ts @@ -1,17 +1,17 @@ import { trpc } from "@util/trpc" -import { useRankings1v1 } from "./useRankings" export const usePlayerSearch = (search: string) => { - const { rankings1v1, isLoading } = useRankings1v1("all", "1", search, { - enabled: !!search, - }) - const { data: aliases } = trpc.searchPlayerAlias.useQuery( + // BMG DB Destroyer 🤦 + // const { rankings1v1, isLoading } = useRankings1v1("all", "1", search, { + // enabled: !!search, + // }) + const { data: aliases, isLoading } = trpc.searchPlayerAlias.useQuery( { alias: search, page: "1" }, { enabled: !!search }, ) return { - rankings1v1, + rankings1v1: [], isLoading, aliases: aliases ?? [], }