This commit is contained in:
mantikoros 2022-07-27 19:12:35 -07:00
parent 2e50c71cac
commit b9914034c8
2 changed files with 16 additions and 15 deletions

View File

@ -85,13 +85,14 @@ export const ContractOverview = (props: {
{tradingAllowed(contract) && <BetRow contract={contract} />}
</Row>
) : (
outcomeType === 'FREE_RESPONSE' ||
(outcomeType === 'MULTIPLE_CHOICE' && resolution && (
(outcomeType === 'FREE_RESPONSE' ||
outcomeType === 'MULTIPLE_CHOICE') &&
resolution && (
<FreeResponseResolutionOrChance
contract={contract}
truncate="none"
/>
))
)
)}
{outcomeType === 'NUMERIC' && (
@ -110,10 +111,10 @@ export const ContractOverview = (props: {
{(isBinary || isPseudoNumeric) && (
<ContractProbGraph contract={contract} bets={bets} />
)}{' '}
{outcomeType === 'FREE_RESPONSE' ||
(outcomeType === 'MULTIPLE_CHOICE' && (
<AnswersGraph contract={contract} bets={bets} />
))}
{(outcomeType === 'FREE_RESPONSE' ||
outcomeType === 'MULTIPLE_CHOICE') && (
<AnswersGraph contract={contract} bets={bets} />
)}
{outcomeType === 'NUMERIC' && <NumericGraph contract={contract} />}
{(contract.description || isCreator) && <Spacer h={6} />}
{isCreator && <ShareMarket className="px-2" contract={contract} />}

View File

@ -217,14 +217,14 @@ export function ContractPageContent(
/>
)}
{outcomeType === 'FREE_RESPONSE' ||
(outcomeType === 'MULTIPLE_CHOICE' && (
<>
<Spacer h={4} />
<AnswersPanel contract={contract} />
<Spacer h={4} />
</>
))}
{(outcomeType === 'FREE_RESPONSE' ||
outcomeType === 'MULTIPLE_CHOICE') && (
<>
<Spacer h={4} />
<AnswersPanel contract={contract} />
<Spacer h={4} />
</>
)}
{isNumeric && allowTrade && (
<NumericBetPanel className="xl:hidden" contract={contract} />