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 (