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

fix is owned and valid tx (#1869)

This commit is contained in:
Bogdan Fazakas 2023-01-27 14:29:02 +02:00 committed by GitHub
parent 83934301fb
commit b2fa5dc538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,12 +55,12 @@ export default function Download({
useEffect(() => { useEffect(() => {
Number(asset?.nft.state) === 4 && setIsOrderDisabled(true) Number(asset?.nft.state) === 4 && setIsOrderDisabled(true)
}, [asset?.nft.state]) }, [asset?.nft.state])
useEffect(() => { useEffect(() => {
if (!asset?.accessDetails || isUnsupportedPricing) return if (!asset?.accessDetails || isUnsupportedPricing) return
asset.accessDetails.isOwned && setIsOwned(asset?.accessDetails?.isOwned) setIsOwned(asset?.accessDetails?.isOwned || false)
asset.accessDetails.validOrderTx && setValidOrderTx(asset?.accessDetails?.validOrderTx || '')
setValidOrderTx(asset?.accessDetails?.validOrderTx)
// get full price and fees // get full price and fees
async function init() { async function init() {