diff --git a/packages/hooks/src/NFT/useNFTContract.ts b/packages/hooks/src/NFT/useNFTContract.ts index 05aa6933..000334a8 100644 --- a/packages/hooks/src/NFT/useNFTContract.ts +++ b/packages/hooks/src/NFT/useNFTContract.ts @@ -15,7 +15,7 @@ export function useNFTContract(contractAddress: string) { const { getContract, accountId } = useNearHooksContainer() const setupContract = () => { - if (contractAddress.includes('undefined')) { + if (!contractAddress || contractAddress.includes('undefined')) { return }