From f1f2123466aa775f2e076f3d5dc6e125cffcf090 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 29 Sep 2020 17:14:25 +0200 Subject: [PATCH] debug output --- src/components/pages/History/PoolTransactions.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/pages/History/PoolTransactions.tsx b/src/components/pages/History/PoolTransactions.tsx index 23d0a8984..c42bc18ce 100644 --- a/src/components/pages/History/PoolTransactions.tsx +++ b/src/components/pages/History/PoolTransactions.tsx @@ -8,13 +8,19 @@ export default function PoolTransactions(): ReactElement { useEffect(() => { async function getLogs() { + if (!ocean || !accountId) return + const logs = await ocean.pool.getAllPoolLogs(accountId) setLogs(logs) } getLogs() }, [ocean, accountId]) - logs && console.log(logs) - - return
Hello
+ return ( +
+
+        {JSON.stringify(logs, null, 2)}
+      
+
+ ) }