mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
package updates
This commit is contained in:
parent
9099c8ee33
commit
cc2474419b
14
package-lock.json
generated
14
package-lock.json
generated
@ -4462,9 +4462,9 @@
|
||||
"integrity": "sha512-LING+GvW37I0L40rZdPCZ1SvcZurDSGGhT0WOVPNO8oyh2C3bXModDBNE4+gCFa8pTbQBOc4ot1/Zoj9PfT/zA=="
|
||||
},
|
||||
"@oceanprotocol/lib": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.7.0.tgz",
|
||||
"integrity": "sha512-XRQ58wWbohtz/buug0498EbpBchxrPwYBh8f/Iln1Vwh6h3IfLWvznmg4gNg/H1AE3qdPsuVcBJwYb0Bos/yGQ==",
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.7.1.tgz",
|
||||
"integrity": "sha512-vwwyFrygmH08gWA3OQESG7ZggEX0wfgnAYK9s9xWKhwi0IiRbNu3a25joCebXlENoEUIF7QRChBFeAlqV2OW0w==",
|
||||
"requires": {
|
||||
"@ethereum-navigator/navigator": "^0.5.0",
|
||||
"@oceanprotocol/contracts": "^0.5.6",
|
||||
@ -4479,11 +4479,11 @@
|
||||
}
|
||||
},
|
||||
"@oceanprotocol/react": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/react/-/react-0.3.0.tgz",
|
||||
"integrity": "sha512-A9D16lx9s6uH5JhzW2f2y/BBxp9+P9Pne5B6HJf6dNf5BJUTC/5itQC8O852YdJRw7CtsM/w50lTL+5Uu9PIzw==",
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/react/-/react-0.3.1.tgz",
|
||||
"integrity": "sha512-RT7eDkjWJcRRbXZJ+WdxpZNKg3KRVUdxp6ha9Cu8GKMzJVCFkF6y1EDkX/EszCtUFpHlDgwi8+WV25ITgXQNPw==",
|
||||
"requires": {
|
||||
"@oceanprotocol/lib": "^0.7.0",
|
||||
"@oceanprotocol/lib": "^0.7.1",
|
||||
"axios": "^0.20.0",
|
||||
"decimal.js": "^10.2.1",
|
||||
"web3": "^1.3.0",
|
||||
|
@ -22,8 +22,8 @@
|
||||
"@coingecko/cryptoformat": "^0.4.2",
|
||||
"@loadable/component": "5.13.1",
|
||||
"@oceanprotocol/art": "^3.0.0",
|
||||
"@oceanprotocol/lib": "^0.7.0",
|
||||
"@oceanprotocol/react": "^0.3.0",
|
||||
"@oceanprotocol/lib": "^0.7.1",
|
||||
"@oceanprotocol/react": "^0.3.1",
|
||||
"@oceanprotocol/typographies": "^0.1.0",
|
||||
"@sindresorhus/slugify": "^1.0.0",
|
||||
"@tippyjs/react": "^4.2.0",
|
||||
|
@ -27,9 +27,8 @@ export default function AssetContent({
|
||||
const { accountId } = useOcean()
|
||||
|
||||
const isOwner = accountId === ddo.publicKey[0].owner
|
||||
// TODO: change type overwrite
|
||||
const hasPrice = (ddo.price.type as any) !== ''
|
||||
const showPricing = isOwner && !hasPrice
|
||||
const hasNoPrice = ddo.price.type === ''
|
||||
const showPricing = isOwner && hasNoPrice
|
||||
|
||||
return (
|
||||
<article className={styles.grid}>
|
||||
|
Loading…
Reference in New Issue
Block a user