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

View File

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