1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

null check

This commit is contained in:
mihaisc 2023-01-19 14:26:40 +02:00
parent 87d68667a0
commit b0215da00f

View File

@ -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}>