From c63325bdf226c27b03e0c51c1caf789f07f14606 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 23 Sep 2019 17:37:16 +0200 Subject: [PATCH] useIpfs fixes --- client/src/hooks/use-ipfs.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/hooks/use-ipfs.tsx b/client/src/hooks/use-ipfs.tsx index cfb449b..48d74ef 100644 --- a/client/src/hooks/use-ipfs.tsx +++ b/client/src/hooks/use-ipfs.tsx @@ -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') } }