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

change hasPrice check

This commit is contained in:
Matthias Kretschmann 2020-10-21 15:26:50 +02:00
parent 770d2a5701
commit 9099c8ee33
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -27,8 +27,8 @@ export default function AssetContent({
const { accountId } = useOcean()
const isOwner = accountId === ddo.publicKey[0].owner
// TODO: check if assets without price actually have ddo.price or not
const hasPrice = typeof ddo.price !== 'undefined'
// TODO: change type overwrite
const hasPrice = (ddo.price.type as any) !== ''
const showPricing = isOwner && !hasPrice
return (