Revert using bet probs, must make totalShares work
This commit is contained in:
parent
9cccc08021
commit
8bdc33f683
|
@ -48,11 +48,10 @@ export function FeedAnswerCommentGroup(props: {
|
|||
const commentsList = comments.filter(
|
||||
(comment) => comment.answerOutcome === answer.number.toString()
|
||||
)
|
||||
const thisAnswerProb =
|
||||
bets
|
||||
.filter((b) => b.outcome === answer.number.toString())
|
||||
.sort((a, b) => b.createdTime - a.createdTime)[0]?.probAfter ||
|
||||
getDpmOutcomeProbability(contract.totalShares, answer.id)
|
||||
const thisAnswerProb = getDpmOutcomeProbability(
|
||||
contract.totalShares,
|
||||
answer.id
|
||||
)
|
||||
const probPercent = formatPercent(thisAnswerProb)
|
||||
const betsByCurrentUser = (user && betsByUserId[user.id]) ?? []
|
||||
const commentsByCurrentUser = (user && commentsByUserId[user.id]) ?? []
|
||||
|
|
Loading…
Reference in New Issue
Block a user