Skip to content

Commit

Permalink
Fix current prediction in list view component (#1617)
Browse files Browse the repository at this point in the history
* Fix current prediction in list view component

* Remove console.log

Co-authored-by: Thomas Pulber <[email protected]>
  • Loading branch information
kadenzipfel and pimato authored Feb 4, 2021
1 parent 5c72575 commit 04aa455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/components/market/common/list_item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export const ListItem: React.FC<Props> = (props: Props) => {
const upperBoundNumber = scalarHigh && Number(formatBigNumber(scalarHigh, 18))
currentPrediction =
Number(outcomeTokenMarginalPrices ? outcomeTokenMarginalPrices[1] : '0') *
((upperBoundNumber || 0) - (lowerBoundNumber || 0) + (lowerBoundNumber || 0))
((upperBoundNumber || 0) - (lowerBoundNumber || 0)) +
(lowerBoundNumber || 0)
}

return (
Expand Down

0 comments on commit 04aa455

Please sign in to comment.