Tweaks. Remove filter for only binary contract

This commit is contained in:
James Grugett 2022-02-17 16:08:55 -06:00
parent e905e31838
commit 57728ab072
3 changed files with 4 additions and 8 deletions

View File

@ -418,7 +418,7 @@ function CreateAnswerInput(props: { contract: Contract }) {
<>
<Col className="gap-2 mt-1">
<div className="text-gray-500 text-sm">
Ante bet (cannot be sold)
Ante (cannot be sold)
</div>
<AmountInput
amount={betAmount}

View File

@ -1,5 +1,5 @@
// From https://tailwindui.com/components/application-ui/lists/feeds
import { useState } from 'react'
import { Fragment, useState } from 'react'
import _ from 'lodash'
import {
BanIcon,
@ -582,10 +582,10 @@ function FeedBetGroup(props: { activityItem: any }) {
<div className="min-w-0 flex-1">
<div className="text-sm text-gray-500">
{outcomes.map((outcome, index) => (
<>
<Fragment key={outcome}>
<BetGroupSpan outcome={outcome} bets={betGroups[outcome]} />
{index !== outcomes.length - 1 && <br />}
</>
</Fragment>
))}
<Timestamp time={createdTime} />
</div>

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