From fd03eb841f1919a32abf57444b3162fa1525ad17 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Sat, 22 Jan 2022 18:36:35 -0600 Subject: [PATCH] home: remove incomplete loading of contract data --- web/pages/home.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/pages/home.tsx b/web/pages/home.tsx index e7fb31cf..63090b2a 100644 --- a/web/pages/home.tsx +++ b/web/pages/home.tsx @@ -63,6 +63,7 @@ const Home = (props: { closingSoonContracts: Contract[] }) => { const { + activeContracts, activeContractBets, activeContractComments, hotContracts, @@ -71,15 +72,14 @@ const Home = (props: { const user = useUser() - const initialActiveContracts = props.activeContracts ?? [] - - const contracts = useContracts() - const recentComments = useRecentComments() - - const activeContracts = - recentComments && contracts - ? findActiveContracts(contracts, recentComments) - : initialActiveContracts + // const initialActiveContracts = props.activeContracts ?? [] + // const contracts = useContracts() + // const recentComments = useRecentComments() + // const activeContracts = + // recentComments && contracts + // ? findActiveContracts(contracts, recentComments) + // : initialActiveContracts + // TODO: get activeContractBets, activeContractComments associated with activeContracts if (user === null) { Router.replace('/')