diff --git a/frontend/src/pages/nft/hooks.ts b/frontend/src/pages/nft/hooks.ts index a322141..22ed937 100644 --- a/frontend/src/pages/nft/hooks.ts +++ b/frontend/src/pages/nft/hooks.ts @@ -1,10 +1,10 @@ -import { useQuery, useSubscription } from '@apollo/client'; +import { useQuery } from '@apollo/client'; import { NFT_QUERY } from './consts'; function useNFT(collectionId: string, idInCollection: string) { const id = `${collectionId}-${idInCollection}`; - const { data } = useQuery(NFT_QUERY, { variables: { id } }); + const { data } = useQuery(NFT_QUERY, { variables: { id }, pollInterval: 10000 }); return data?.nftById; }