1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

asset details fix

This commit is contained in:
mihaisc 2020-05-19 15:47:21 +03:00
parent a6b0ca4be6
commit 5015d26cea

View File

@ -40,8 +40,6 @@ export default function AssetDetails({
}: AssetDetailsProps) { }: AssetDetailsProps) {
const { main, additionalInformation } = metadata const { main, additionalInformation } = metadata
const price = main.price && Web3.utils.fromWei(main.price.toString()) const price = main.price && Web3.utils.fromWei(main.price.toString())
if (!ddo) return
console.log(ddo)
const isCompute = !!ddo.findServiceByType('compute') const isCompute = !!ddo.findServiceByType('compute')
const isAccess = !!ddo.findServiceByType('access') const isAccess = !!ddo.findServiceByType('access')