diff --git a/src/hooks/usePublish/usePublish.ts b/src/hooks/usePublish/usePublish.ts index 2fc88ee..de99aa7 100644 --- a/src/hooks/usePublish/usePublish.ts +++ b/src/hooks/usePublish/usePublish.ts @@ -8,7 +8,7 @@ import { useState } from 'react' import { DataTokenOptions } from './DataTokenOptions' import { useOcean } from 'providers' import ProviderStatus from 'providers/OceanProvider/ProviderStatus' -import { publishFeedback , sleep } from 'utils' +import { publishFeedback, sleep } from 'utils' interface UsePublish { publish: ( diff --git a/src/utils/index.ts b/src/utils/index.ts index 5483e6c..5106ca7 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -40,7 +40,7 @@ export const publishFeedback: { [key in number]: string } = { export * from './web3' -export function sleep(ms: number) { +export function sleep(ms: number): Promise { return new Promise((resolve) => { setTimeout(resolve, ms) })