Commit 799edfb4 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: don't fire off a graphql query on an empty search (#6152)

don't fire off a graphql query on an empty search
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent 1e254364
......@@ -77,6 +77,7 @@ export function useSearchTokens(searchQuery: string, chainId: number) {
variables: {
searchQuery,
},
skip: !searchQuery,
})
const sortedTokens = useMemo(() => {
......
......@@ -57,7 +57,7 @@ function useCollectionQuerySearch(query: string, skip?: boolean): useCollectionS
variables: {
query,
},
skip,
skip: skip || !query,
})
return useMemo(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment