diff --git a/web/components/contract/contract-seo.tsx b/web/components/contract/contract-seo.tsx index c4080a0e63..b5b8f796db 100644 --- a/web/components/contract/contract-seo.tsx +++ b/web/components/contract/contract-seo.tsx @@ -1,4 +1,4 @@ -import { Contract, twombaContractPath } from 'common/contract' +import { Contract } from 'common/contract' import { getSeoDescription, getContractOGProps } from 'common/contract-seo' import { removeUndefinedProps } from 'common/util/object' import { SEO } from '../SEO' @@ -9,7 +9,7 @@ export function ContractSEO(props: { points?: string }) { const { contract, points } = props - const { question } = contract + const { question, creatorUsername, slug } = contract const seoDesc = getSeoDescription(contract) const ogCardProps = removeUndefinedProps({ @@ -21,7 +21,7 @@ export function ContractSEO(props: { ) diff --git a/web/components/contract/contract-tabs.tsx b/web/components/contract/contract-tabs.tsx index 024d38a902..462fc32ec6 100644 --- a/web/components/contract/contract-tabs.tsx +++ b/web/components/contract/contract-tabs.tsx @@ -325,6 +325,8 @@ export const CommentsTabContent = memo(function CommentsTabContent(props: { useHashInUrl() : // eslint-disable-next-line react-hooks/rules-of-hooks useHashInUrlPageRouter('') + + console.log('ID TO HIGHLIGHT', idToHighlight, appRouter) useEffect(() => { if (idToHighlight) { const currentlyVisible = visibleCommentIds.includes(idToHighlight) diff --git a/web/pages/embed/[username]/[contractSlug].tsx b/web/pages/embed/[username]/[contractSlug].tsx index 0fe1012881..8c2329d682 100644 --- a/web/pages/embed/[username]/[contractSlug].tsx +++ b/web/pages/embed/[username]/[contractSlug].tsx @@ -146,7 +146,7 @@ export default function ContractEmbedPage(props: { return ( <> - +