Skip to content

Commit

Permalink
db destroyer
Browse files Browse the repository at this point in the history
  • Loading branch information
djobbo committed Oct 4, 2024
1 parent ff2d2f4 commit 8f67a69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/hooks/stats/usePlayerSearch.ts
Original file line number Diff line number Diff line change
@@ -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 ?? [],
}
Expand Down

0 comments on commit 8f67a69

Please sign in to comment.