Skip to content

Commit

Permalink
Fix FR comment not displaying bet outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Jan 16, 2023
1 parent 714bc76 commit 629326f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/components/feed/feed-comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,15 @@ export function FeedCommentHeader(props: {
bought = comment.betAmount >= 0 ? 'bought' : 'sold'
money = formatMoney(Math.abs(comment.betAmount))
}
const shouldDisplayOutcome = betOutcome && !comment.answerOutcome
return (
<Row>
<div className="mt-0.5 text-sm text-gray-600">
<UserLink username={userUsername} name={userName} />{' '}
<span className="text-gray-400">
<CommentStatus contract={contract} comment={comment} />
{bought} {money}
{contract.outcomeType !== 'FREE_RESPONSE' && betOutcome && (
{shouldDisplayOutcome && (
<>
{' '}
of{' '}
Expand Down

3 comments on commit 629326f

@vercel
Copy link

@vercel vercel bot commented on 629326f Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main-mantic.vercel.app
docs-pi-teal.vercel.app
docs.manifold.markets
docs-mantic.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 629326f Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 629326f Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dev – ./web

dev-mantic.vercel.app
dev-manifold.vercel.app
dev.manifold.markets
dev-git-main-mantic.vercel.app

Please sign in to comment.