Skip to content

Commit

Permalink
Fix numeric og image
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Feb 28, 2025
1 parent 094a9b7 commit 0884f52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions common/src/contract-seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { richTextToString } from './util/parse'
import { formatMoneyNumber, formatPercent } from './util/format'
import { getFormattedNumberExpectedValue } from 'common/number'
import { sortAnswers } from './answer'
import { getFormattedExpectedValue } from './multi-numeric'

export const getContractOGProps = (
contract: Contract
Expand Down Expand Up @@ -38,6 +39,8 @@ export const getContractOGProps = (
const numericValue =
outcomeType === 'NUMBER'
? getFormattedNumberExpectedValue(contract)
: outcomeType === 'MULTI_NUMERIC'
? getFormattedExpectedValue(contract)
: outcomeType === 'PSEUDO_NUMERIC' || outcomeType === 'STONK'
? getFormattedMappedValue(contract, getDisplayProbability(contract))
: undefined
Expand Down
2 changes: 1 addition & 1 deletion web/components/og/og-market.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function Answer(props: OgCardProps) {

function EndValue(props: { value: string; label: string }) {
return (
<div className="z-20 flex flex-col items-center justify-center">
<div className="flex flex-col items-center justify-center text-black">
<span className="text-3xl">{props.value}</span>
<span className="text-xl">{props.label}</span>
</div>
Expand Down

0 comments on commit 0884f52

Please sign in to comment.