mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
useIpfs fixes
This commit is contained in:
parent
60a570892b
commit
c63325bdf2
@ -11,7 +11,7 @@ let ipfsVersion = ''
|
||||
|
||||
export default function useIpfs() {
|
||||
const [isIpfsReady, setIpfsReady] = useState(Boolean(ipfs))
|
||||
const [ipfsError, setIpfsError] = useState(null)
|
||||
const [ipfsError, setIpfsError] = useState('')
|
||||
|
||||
useEffect(() => {
|
||||
async function startIpfs() {
|
||||
@ -64,7 +64,7 @@ export default function useIpfs() {
|
||||
ipfs = null
|
||||
ipfsMessage = ''
|
||||
ipfsVersion = ''
|
||||
setIpfsError(null)
|
||||
setIpfsError('')
|
||||
console.timeEnd('IPFS stopped')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user