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:
parent
770d2a5701
commit
9099c8ee33
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user