diff --git a/og-image/api/_lib/template.ts b/og-image/api/_lib/template.ts index 1cb47330..3b80a419 100644 --- a/og-image/api/_lib/template.ts +++ b/og-image/api/_lib/template.ts @@ -100,6 +100,7 @@ export function getHtml(parsedReq: ParsedRequest) { ? question.slice(0, MAX_QUESTION_CHARS) + '...' : question const hideAvatar = creatorAvatarUrl ? '' : 'hidden' + const hideNonChallengeElements = challengeAmount !== '' ? 'hidden' : '' return ` @@ -146,24 +147,29 @@ export function getHtml(parsedReq: ParsedRequest) {
+
+ ${challengeAmount ? 'CHALLENGE BET:' : ''} +
${truncatedQuestion}
${ - challengeAmount !== '' ? 'M$' + challengeAmount : probability - }
-
${ - challengeOutcome !== '' ? 'on' + challengeOutcome : '' - }
-
${ - challengeAmount !== '' && probability !== '' ? 'chance' : '' + challengeAmount ? 'M$' + challengeAmount : probability }
+ +
+
${challengeOutcome ? 'on' : ''}
+
${challengeOutcome ?? ''}
+
+
${ + probability !== '' ? 'chance' : '' + }
-
+
${metadata}
diff --git a/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx b/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx index 3f143841..acf8358c 100644 --- a/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx +++ b/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx @@ -103,7 +103,6 @@ export default function ChallengePage(props: { ogCardProps.creatorUsername = challenge.creatorUsername ogCardProps.creatorName = challenge.creatorName ogCardProps.creatorAvatarUrl = challenge.creatorAvatarUrl - ogCardProps.question = 'CHALLENGED:' + contract.question return (