From cc2474419b9591c5c68013ef65cf25fbb64eec9a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 21 Oct 2020 15:45:38 +0200 Subject: [PATCH] package updates --- package-lock.json | 14 +++++++------- package.json | 4 ++-- src/components/organisms/AssetContent/index.tsx | 5 ++--- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 90123f37b..ff310d2b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 7feddc732..02d19d493 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/organisms/AssetContent/index.tsx b/src/components/organisms/AssetContent/index.tsx index 23f5b286e..99555d602 100644 --- a/src/components/organisms/AssetContent/index.tsx +++ b/src/components/organisms/AssetContent/index.tsx @@ -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 (