We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a2b7e commit 4fa8f0aCopy full SHA for 4fa8f0a
hooks/useSearch.ts
@@ -3,7 +3,7 @@ import { useBlockQuery, useNonFungibleTokensQuery, useTransactionQuery } from '.
3
import useAccounts from './useAccounts';
4
5
const useSearch = (query: string) => {
6
- const trimedQuery = query.trim()
+ const trimedQuery = query?.trim()
7
const { data: blockData, loading: blockIsLoading } = useBlockQuery({
8
variables: {
9
id: trimedQuery,
0 commit comments