From 57728ab0725b37fb6c360ac13e3c3562f56d692b Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 17 Feb 2022 16:08:55 -0600 Subject: [PATCH] Tweaks. Remove filter for only binary contract --- web/components/answers-panel.tsx | 2 +- web/components/contract-feed.tsx | 6 +++--- web/pages/home.tsx | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/web/components/answers-panel.tsx b/web/components/answers-panel.tsx index 3f54600e..483190ef 100644 --- a/web/components/answers-panel.tsx +++ b/web/components/answers-panel.tsx @@ -418,7 +418,7 @@ function CreateAnswerInput(props: { contract: Contract }) { <>
- Ante bet (cannot be sold) + Ante (cannot be sold)
{outcomes.map((outcome, index) => ( - <> + {index !== outcomes.length - 1 &&
} - +
))}
diff --git a/web/pages/home.tsx b/web/pages/home.tsx index 1568b778..802493d5 100644 --- a/web/pages/home.tsx +++ b/web/pages/home.tsx @@ -30,10 +30,6 @@ export async function getStaticProps() { listAllFolds().catch(() => []), ]) - // TODO(James): Remove this line. We are filtering out non-binary contracts so that - // branches other than free-response work. - contracts = contracts.filter((contract) => contract.outcomeType === 'BINARY') - const [contractBets, contractComments] = await Promise.all([ Promise.all(contracts.map((contract) => listAllBets(contract.id))), Promise.all(contracts.map((contract) => listAllComments(contract.id))),