contract page seo tags

This commit is contained in:
mantikoros 2022-01-02 12:57:52 -06:00
parent 907acec601
commit cdf25ba659

View File

@ -55,15 +55,16 @@ export default function ContractPage(props: {
const isCreator = user?.id === creatorId const isCreator = user?.id === creatorId
const { probPercent } = compute(contract) const { probPercent } = compute(contract)
const title = resolution
? `Resolved ${resolution}: ${question}` const description = resolution
: `${probPercent} chance: ${question}` ? `Resolved ${resolution}. ${contract.description}`
: `${probPercent} chance. ${contract.description}`
return ( return (
<Page wide={!isResolved}> <Page wide={!isResolved}>
<SEO <SEO
title={title} title={question}
description={contract.description} description={description}
url={`/${props.username}/${props.slug}`} url={`/${props.username}/${props.slug}`}
/> />