From 6d442200434d8ac5498c77147e0f8185caefefae Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Tue, 13 Apr 2021 12:57:58 -0400 Subject: [PATCH] hide history table if not connected --- components/TradeHistoryTable.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/TradeHistoryTable.tsx b/components/TradeHistoryTable.tsx index d2f655e..a34eebe 100644 --- a/components/TradeHistoryTable.tsx +++ b/components/TradeHistoryTable.tsx @@ -2,12 +2,13 @@ import useTradeHistory from '../hooks/useTradeHistory' const TradeHistoryTable = () => { const { tradeHistory } = useTradeHistory() + console.log('trade history', tradeHistory) return (
- {tradeHistory ? ( + {tradeHistory && tradeHistory.length ? (