From ce418d51a7f277435ae646ef5117c3bbfd589538 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 26 Jul 2022 14:15:45 -0700 Subject: [PATCH] Edit og card props --- .../[username]/[contractSlug]/[challengeSlug].tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx b/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx index 1c454b36..1d1a6590 100644 --- a/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx +++ b/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx @@ -92,16 +92,18 @@ export default function ChallengePage(props: { } 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 ( {ogCardProps && (