1
0
mirror of https://github.com/oceanprotocol/react.git synced 2025-01-24 17:21:58 +01:00
This commit is contained in:
alexcos20 2020-10-21 08:02:36 -07:00
parent 658f432873
commit 2dd83a6502
2 changed files with 2 additions and 2 deletions

View File

@ -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: (

View File

@ -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<void> {
return new Promise((resolve) => {
setTimeout(resolve, ms)
})