From 191ec9535ca28bb9cd16cdc811fd9fd4849a8369 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sat, 17 Sep 2022 18:00:24 -0500 Subject: [PATCH] Show more rows on daily movers all --- web/components/contract/prob-change-table.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 ( - +