From dd2959913362e5faf4ca5dc8da5e6ff0ca6ba2fa Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 29 Sep 2020 15:47:36 +0200 Subject: [PATCH] fix publish --- src/hooks/usePublish/usePublish.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/hooks/usePublish/usePublish.ts b/src/hooks/usePublish/usePublish.ts index 4c0385b..611833e 100644 --- a/src/hooks/usePublish/usePublish.ts +++ b/src/hooks/usePublish/usePublish.ts @@ -1,15 +1,15 @@ -import { useState } from 'react' -import { DDO, Metadata, Logger } from '@oceanprotocol/lib' -import { useOcean } from '../../providers' -import ProviderStatus from '../../providers/OceanProvider/ProviderStatus' +import { DDO, Logger, Metadata } from '@oceanprotocol/lib' import { Service, ServiceComputePrivacy, ServiceType } from '@oceanprotocol/lib/dist/node/ddo/interfaces/Service' -import { PriceOptions } from './PriceOptions' -import { publishFeedback } from '../../utils' +import { useState } from 'react' import { DataTokenOptions } from '.' +import { useOcean } from '../../providers' +import ProviderStatus from '../../providers/OceanProvider/ProviderStatus' +import { publishFeedback } from '../../utils' +import { PriceOptions } from './PriceOptions' interface UsePublish { publish: ( @@ -175,6 +175,7 @@ function usePublish(): UsePublish { asset, account, services, + undefined, dataTokenOptions?.cap, dataTokenOptions?.name, dataTokenOptions?.symbol