From 277ee2155e31b417399aaa8f4ddb8d21b86bee17 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Mon, 2 Dec 2019 11:00:12 -0500 Subject: [PATCH] fix logging --- src/components/MainCointainer.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/MainCointainer.jsx b/src/components/MainCointainer.jsx index c315f4c..47437bf 100644 --- a/src/components/MainCointainer.jsx +++ b/src/components/MainCointainer.jsx @@ -235,7 +235,7 @@ function PersistentDrawerLeft({ loading, account, children, enableEthereum, loca useEffect(() => { const queryParams = queryString.parse(search) if (queryParams.logs) enableLogs() - setQueryParams({ queryParams }) + setQueryParams({ ...queryParams }) }, [search]) useEffect(() => { @@ -246,7 +246,7 @@ function PersistentDrawerLeft({ loading, account, children, enableEthereum, loca const enableLogs = () => { Hook(window.console, log => { - setLogs(({ logs }) => ({ logs: [Decode(log), ...logs] })) + setLogs(logs => ([Decode(log), ...logs])) }) } @@ -369,7 +369,7 @@ function PersistentDrawerLeft({ loading, account, children, enableEthereum, loca - } /> + } /> {children}