Don't remove prob
This commit is contained in:
parent
8e801d0088
commit
086672dd4e
|
@ -156,7 +156,9 @@ export function getHtml(parsedReq: ParsedRequest) {
|
||||||
<div class="text-5xl">${
|
<div class="text-5xl">${
|
||||||
challengeOutcome !== '' ? 'on' + challengeOutcome : ''
|
challengeOutcome !== '' ? 'on' + challengeOutcome : ''
|
||||||
}</div>
|
}</div>
|
||||||
<div class="text-4xl">${probability !== '' ? 'chance' : ''}</div>
|
<div class="text-4xl">${
|
||||||
|
challengeAmount !== '' && probability !== '' ? 'chance' : ''
|
||||||
|
}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,11 @@ export type OgCardProps = {
|
||||||
creatorAvatarUrl?: string
|
creatorAvatarUrl?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ChallengeCardProps = {
|
||||||
|
challengeAmount: string
|
||||||
|
challengeOutcome: string
|
||||||
|
}
|
||||||
|
|
||||||
function buildCardUrl(props: OgCardProps, challengeProps?: ChallengeCardProps) {
|
function buildCardUrl(props: OgCardProps, challengeProps?: ChallengeCardProps) {
|
||||||
const probabilityParam =
|
const probabilityParam =
|
||||||
props.probability === undefined
|
props.probability === undefined
|
||||||
|
@ -36,10 +41,6 @@ function buildCardUrl(props: OgCardProps, challengeProps?: ChallengeCardProps) {
|
||||||
challengeUrlParams
|
challengeUrlParams
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
type ChallengeCardProps = {
|
|
||||||
challengeAmount: string
|
|
||||||
challengeOutcome: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SEO(props: {
|
export function SEO(props: {
|
||||||
title: string
|
title: string
|
||||||
|
|
|
@ -101,9 +101,9 @@ export default function ChallengePage(props: {
|
||||||
const ogCardProps = getOpenGraphProps(contract)
|
const ogCardProps = getOpenGraphProps(contract)
|
||||||
|
|
||||||
ogCardProps.creatorUsername = challenge.creatorUsername
|
ogCardProps.creatorUsername = challenge.creatorUsername
|
||||||
|
ogCardProps.creatorName = challenge.creatorName
|
||||||
ogCardProps.creatorAvatarUrl = challenge.creatorAvatarUrl
|
ogCardProps.creatorAvatarUrl = challenge.creatorAvatarUrl
|
||||||
ogCardProps.question = 'CHALLENGED:' + contract.question
|
ogCardProps.question = 'CHALLENGED:' + contract.question
|
||||||
ogCardProps.probability = ''
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user