Edit og card props
This commit is contained in:
parent
ffaca099cc
commit
ce418d51a7
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user