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 newCancelToken = useCancelToken()
|
||||
useEffect(() => {
|
||||
if (!asset.paymentCollector) return
|
||||
checkCalicaContractAddress(
|
||||
asset.paymentCollector,
|
||||
asset.chainId,
|
||||
@ -24,7 +25,7 @@ export default function OwnerActions() {
|
||||
calicaUri,
|
||||
asset?.paymentCollector
|
||||
)
|
||||
}, [asset?.paymentCollector, calicaUri])
|
||||
}, [asset.chainId, asset.paymentCollector, calicaUri, newCancelToken])
|
||||
// {ddo?.paymentCollector && ddo?.paymentCollector !== ddo?.nft?.owner && (
|
||||
return isOwner ? (
|
||||
<div className={styles.ownerActions}>
|
||||
|
Loading…
Reference in New Issue
Block a user