Edit og card props

This commit is contained in:
Ian Philips 2022-07-26 14:15:45 -07:00
parent ffaca099cc
commit ce418d51a7

View File

@ -92,16 +92,18 @@ export default function ChallengePage(props: {
} }
const ogCardProps = getOpenGraphProps(contract) const ogCardProps = getOpenGraphProps(contract)
ogCardProps.question =
'Will you accept ' +
challenge.creatorName.split(' ')[0] +
"'s challenge on: " +
contract.question
ogCardProps.probability = Math.round(challenge.creatorsOutcomeProb * 100) + ''
return ( return (
<Page> <Page>
{ogCardProps && ( {ogCardProps && (
<SEO <SEO
title={ title={ogCardProps.question}
challenge.creatorName.split(' ')[0] +
' challenges you to a duel on: ' +
contract.question
}
description={ogCardProps.description} description={ogCardProps.description}
url={getChallengeUrl(challenge)} url={getChallengeUrl(challenge)}
ogCardProps={ogCardProps} ogCardProps={ogCardProps}