Skip to content

Commit

Permalink
Fix broken charts from missing initialProbability
Browse files Browse the repository at this point in the history
  • Loading branch information
sipec committed Jun 20, 2024
1 parent e61a3e2 commit a650c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/components/charts/contract/binary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const BinaryContractChart = (props: {

const data = useMemo(() => {
return [
{ x: start, y: contract.initialProbability },
{ x: start, y: contract.initialProbability ?? 0.5 }, // binary markets before 3-16-2022 have no initialProbability
...betPoints,
{ x: end ?? now, y: endP },
]
Expand Down

0 comments on commit a650c1b

Please sign in to comment.