Turn off hook for fetching hot contracts for now.

This commit is contained in:
jahooma 2022-01-15 12:43:39 -06:00
parent f6079e68d0
commit 0069846335

View File

@ -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 (
<Page>