Enable contract queries without a wallet connection
This commit is contained in:
parent
79bb24d33a
commit
0ca2d63161
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user