Remove filter out of binary contracts

This commit is contained in:
James Grugett 2022-02-17 18:39:06 -06:00
parent 0a3b14883c
commit 20ec09b7c6

View File

@ -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))),