Skip to content

Commit

Permalink
just assume bets in mana (#2880)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei authored Sep 17, 2024
1 parent e602bf8 commit 90b7207
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions web/components/comments/comment-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,16 @@ export function FeedCommentHeader(props: {
isRepost,
betOrderAmount,
betLimitProb,
contractSlug,
} = comment

const betOnCashContract = contractSlug.endsWith(CASH_SUFFIX)
const isCashContract = contract.token === 'CASH'
const marketCreator = contract.creatorId === userId
const { bought, money } = getBoughtMoney(betAmount, betOnCashContract)
const { bought, money } = getBoughtMoney(betAmount, false)
const shouldDisplayOutcome = betOutcome && !answerOutcome
const isReplyToBet = betAmount !== undefined
const commenterIsBettor = commenterAndBettorMatch(comment)
const isLimitBet = betOrderAmount !== undefined && betLimitProb !== undefined

return (
<Col className={clsx('text-ink-600 text-sm', className)}>
<Row className="justify-between">
Expand All @@ -104,10 +103,8 @@ export function FeedCommentHeader(props: {
<span className={'ml-1'}>
{betAmount === betOrderAmount ? 'filled' : 'opened'} a{' '}
<span className="text-ink-1000">
<MoneyDisplay
amount={betOrderAmount}
isCashContract={betOnCashContract}
/>
{/* assumes bets are never in sweeps */}
<MoneyDisplay amount={betOrderAmount} isCashContract={false} />
</span>{' '}
<OutcomeLabel
outcome={betOutcome ? betOutcome : ''}
Expand Down

0 comments on commit 90b7207

Please sign in to comment.