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:
parent
83934301fb
commit
b2fa5dc538
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user