diff --git a/web/components/contract/prob-change-table.tsx b/web/components/contract/prob-change-table.tsx index ceff8060..8a3ed87f 100644 --- a/web/components/contract/prob-change-table.tsx +++ b/web/components/contract/prob-change-table.tsx @@ -26,10 +26,9 @@ export function ProbChangeTable(props: { negativeChanges.findIndex((c) => c.probChanges.day > -threshold) + 1 ) const maxRows = Math.min(positiveChanges.length, negativeChanges.length) - const rows = Math.min( - full ? Infinity : 3, - Math.min(maxRows, countOverThreshold) - ) + const rows = full + ? maxRows + : Math.min(3, Math.min(maxRows, countOverThreshold)) const filteredPositiveChanges = positiveChanges.slice(0, rows) const filteredNegativeChanges = negativeChanges.slice(0, rows) @@ -55,7 +54,7 @@ export function ProbChangeTable(props: { function ProbChangeRow(props: { contract: CPMMContract }) { const { contract } = props return ( - +