Parse please
This commit is contained in:
parent
5d02ba3570
commit
8e801d0088
|
@ -71,8 +71,8 @@ export function parseRequest(req: IncomingMessage) {
|
|||
creatorName: getString(creatorName) || 'Manifold Markets',
|
||||
creatorUsername: getString(creatorUsername) || 'ManifoldMarkets',
|
||||
creatorAvatarUrl: getString(creatorAvatarUrl) || '',
|
||||
challengeAmount: getString(challengeAmount),
|
||||
challengeOutcome: getString(challengeOutcome),
|
||||
challengeAmount: getString(challengeAmount) || '',
|
||||
challengeOutcome: getString(challengeOutcome) || '',
|
||||
}
|
||||
parsedRequest.images = getDefaultImages(parsedRequest.images)
|
||||
return parsedRequest
|
||||
|
|
|
@ -151,10 +151,10 @@ export function getHtml(parsedReq: ParsedRequest) {
|
|||
</div>
|
||||
<div class="flex flex-col text-primary">
|
||||
<div class="text-8xl">${
|
||||
challengeAmount ? 'M$' + challengeAmount : probability
|
||||
challengeAmount !== '' ? 'M$' + challengeAmount : probability
|
||||
}</div>
|
||||
<div class="text-5xl">${
|
||||
challengeOutcome ? 'on' + challengeOutcome : ''
|
||||
challengeOutcome !== '' ? 'on' + challengeOutcome : ''
|
||||
}</div>
|
||||
<div class="text-4xl">${probability !== '' ? 'chance' : ''}</div>
|
||||
</div>
|
||||
|
|
|
@ -18,6 +18,6 @@ export interface ParsedRequest {
|
|||
creatorName: string
|
||||
creatorUsername: string
|
||||
creatorAvatarUrl: string
|
||||
challengeAmount: string | undefined
|
||||
challengeOutcome: string | undefined
|
||||
challengeAmount: string
|
||||
challengeOutcome: string
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user