Enable contract queries without a wallet connection

This commit is contained in:
Serkan Reis 2023-11-14 19:06:49 +03:00
parent 79bb24d33a
commit 0ca2d63161
8 changed files with 8 additions and 8 deletions

View File

@ -106,7 +106,7 @@ const BadgeHubQueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)

View File

@ -58,7 +58,7 @@ const BaseMinterQueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)

View File

@ -63,7 +63,7 @@ const OpenEditionMinterQueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)

View File

@ -79,7 +79,7 @@ const RoyaltyRegistryQueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)

View File

@ -75,7 +75,7 @@ const Sg721QueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)

View File

@ -89,7 +89,7 @@ const SplitsQueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)

View File

@ -63,7 +63,7 @@ const VendingMinterQueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)

View File

@ -65,7 +65,7 @@ const WhitelistQueryPage: NextPage = () => {
onError: (error: any) => {
toast.error(error.message, { style: { maxWidth: 'none' } })
},
enabled: Boolean(contractAddress && contract && wallet.isWalletConnected),
enabled: Boolean(contractAddress && contract),
},
)