Use challenge creator as avatar
This commit is contained in:
parent
ad7e3a46be
commit
d3a623e7c2
|
@ -96,9 +96,11 @@ export default function ChallengePage(props: {
|
||||||
if (!contract || !challenge) return <Custom404 />
|
if (!contract || !challenge) return <Custom404 />
|
||||||
const ogCardProps = getOpenGraphProps(contract)
|
const ogCardProps = getOpenGraphProps(contract)
|
||||||
|
|
||||||
|
ogCardProps.creatorUsername = challenge.creatorUsername
|
||||||
|
ogCardProps.creatorAvatarUrl = challenge.creatorAvatarUrl
|
||||||
ogCardProps.question =
|
ogCardProps.question =
|
||||||
challenge.creatorName.split(' ')[0] +
|
challenge.creatorName.split(' ')[0] +
|
||||||
"'s CHALLENGING you: " +
|
'I challenge you to a bet on: ' +
|
||||||
contract.question
|
contract.question
|
||||||
ogCardProps.probability =
|
ogCardProps.probability =
|
||||||
Math.round(challenge.creatorsOutcomeProb * 100) + '%'
|
Math.round(challenge.creatorsOutcomeProb * 100) + '%'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user