From 00698463350c3ea3076deb20a99d2d8f4e2c9d44 Mon Sep 17 00:00:00 2001 From: jahooma Date: Sat, 15 Jan 2022 12:43:39 -0600 Subject: [PATCH] Turn off hook for fetching hot contracts for now. --- web/pages/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/pages/index.tsx b/web/pages/index.tsx index 9e33e84a..727253b0 100644 --- a/web/pages/index.tsx +++ b/web/pages/index.tsx @@ -17,7 +17,6 @@ import { import { Col } from '../components/layout/col' import { ContractCard } from '../components/contract-card' import { Bet, listAllBets } from '../lib/firebase/bets' -import { useHotContracts } from '../hooks/use-contracts' export async function getStaticProps() { const [contracts, hotContracts, recentComments] = await Promise.all([ @@ -52,9 +51,12 @@ const Home = (props: { activeContractComments: Comment[][] hotContracts: Contract[] }) => { - const { activeContracts, activeContractBets, activeContractComments } = props - - const hotContracts = useHotContracts() ?? props.hotContracts + const { + activeContracts, + activeContractBets, + activeContractComments, + hotContracts, + } = props return (