diff --git a/client/src/components/templates/Asset/AssetFile.tsx b/client/src/components/templates/Asset/AssetFile.tsx index 3d9a9a3..d11a657 100644 --- a/client/src/components/templates/Asset/AssetFile.tsx +++ b/client/src/components/templates/Asset/AssetFile.tsx @@ -59,8 +59,6 @@ export default class AssetFile extends PureComponent< try { const accounts = await ocean.accounts.list() - const service = ddo.findServiceByType('access') - const agreements = await ocean.keeper.conditions.accessSecretStoreCondition.getGrantedDidByConsumer( accounts[0].id ) @@ -74,7 +72,7 @@ export default class AssetFile extends PureComponent< ;({ agreementId } = agreement) } else { agreementId = await ocean.assets - .order(ddo.id, service.index, accounts[0]) + .order(ddo.id, accounts[0]) .next((step: number) => this.setState({ step })) } @@ -84,7 +82,6 @@ export default class AssetFile extends PureComponent< const path = await ocean.assets.consume( agreementId, ddo.id, - service.index, accounts[0], '', index