From fe776151113232a938be572b5b2abf8b0bfd9c40 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 20 Sep 2022 19:32:36 -0500 Subject: [PATCH] Remove propz stuff that was breaking meta tags --- web/pages/[username]/[contractSlug].tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/web/pages/[username]/[contractSlug].tsx b/web/pages/[username]/[contractSlug].tsx index 0da6c994..71cfde4e 100644 --- a/web/pages/[username]/[contractSlug].tsx +++ b/web/pages/[username]/[contractSlug].tsx @@ -20,7 +20,6 @@ import { Bet, listAllBets } from 'web/lib/firebase/bets' import { Comment, listAllComments } from 'web/lib/firebase/comments' import Custom404 from '../404' import { AnswersPanel } from 'web/components/answers/answers-panel' -import { fromPropz, usePropz } from 'web/hooks/use-propz' import { Leaderboard } from 'web/components/leaderboard' import { resolvedPayout } from 'common/calculate' import { formatMoney } from 'common/util/format' @@ -45,8 +44,7 @@ import { FeedComment } from 'web/components/feed/feed-comments' import { Title } from 'web/components/title' import { FeedBet } from 'web/components/feed/feed-bets' -export const getStaticProps = fromPropz(getStaticPropz) -export async function getStaticPropz(props: { +export async function getStaticProps(props: { params: { username: string; contractSlug: string } }) { const { username, contractSlug } = props.params @@ -84,14 +82,6 @@ export default function ContractPage(props: { slug: string backToHome?: () => void }) { - props = usePropz(props, getStaticPropz) ?? { - contract: null, - username: '', - comments: [], - bets: [], - slug: '', - } - const inIframe = useIsIframe() if (inIframe) { return