From 15d203977a7938eba1bb85ebf7ace4a5af8dd894 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 27 May 2022 15:40:47 -0500 Subject: [PATCH] Portfolio: Consistently filter out contracts you have sold out of. --- web/components/bets-list.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 400a5f7f..e5165c3a 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -122,8 +122,7 @@ export function BetsList(props: { user: User }) { .reverse() .filter(FILTERS[filter]) .filter((c) => { - if (sort === 'profit') return true - + // TODO: Expose a user setting to toggle whether to show contracts you sold out of. // Filter out contracts where you don't have shares anymore. const metrics = contractsMetrics[c.id] return metrics.payout > 0