mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
null check
This commit is contained in:
parent
87d68667a0
commit
b0215da00f
@ -13,6 +13,7 @@ export default function OwnerActions() {
|
|||||||
const [calicaUri, setCalicaUri] = useState()
|
const [calicaUri, setCalicaUri] = useState()
|
||||||
const newCancelToken = useCancelToken()
|
const newCancelToken = useCancelToken()
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!asset.paymentCollector) return
|
||||||
checkCalicaContractAddress(
|
checkCalicaContractAddress(
|
||||||
asset.paymentCollector,
|
asset.paymentCollector,
|
||||||
asset.chainId,
|
asset.chainId,
|
||||||
@ -24,7 +25,7 @@ export default function OwnerActions() {
|
|||||||
calicaUri,
|
calicaUri,
|
||||||
asset?.paymentCollector
|
asset?.paymentCollector
|
||||||
)
|
)
|
||||||
}, [asset?.paymentCollector, calicaUri])
|
}, [asset.chainId, asset.paymentCollector, calicaUri, newCancelToken])
|
||||||
// {ddo?.paymentCollector && ddo?.paymentCollector !== ddo?.nft?.owner && (
|
// {ddo?.paymentCollector && ddo?.paymentCollector !== ddo?.nft?.owner && (
|
||||||
return isOwner ? (
|
return isOwner ? (
|
||||||
<div className={styles.ownerActions}>
|
<div className={styles.ownerActions}>
|
||||||
|
Loading…
Reference in New Issue
Block a user