don't render NumericBetPanel for non numeric markets

This commit is contained in:
mantikoros 2022-05-16 17:25:06 -04:00
parent ce52c834aa
commit 93bc27bc52

View File

@ -120,7 +120,7 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
return <Custom404 /> return <Custom404 />
} }
const { creatorId, isResolved, question, outcomeType, resolution } = contract const { creatorId, isResolved, question, outcomeType } = contract
const isCreator = user?.id === creatorId const isCreator = user?.id === creatorId
const isBinary = outcomeType === 'BINARY' const isBinary = outcomeType === 'BINARY'
@ -204,10 +204,12 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
</> </>
)} )}
<NumericBetPanel {isNumeric && (
className="sm:hidden" <NumericBetPanel
contract={contract as NumericContract} className="sm:hidden"
/> contract={contract as NumericContract}
/>
)}
{isResolved && ( {isResolved && (
<> <>