don't render NumericBetPanel for non numeric markets
This commit is contained in:
parent
ce52c834aa
commit
93bc27bc52
|
@ -120,7 +120,7 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
|
|||
return <Custom404 />
|
||||
}
|
||||
|
||||
const { creatorId, isResolved, question, outcomeType, resolution } = contract
|
||||
const { creatorId, isResolved, question, outcomeType } = contract
|
||||
|
||||
const isCreator = user?.id === creatorId
|
||||
const isBinary = outcomeType === 'BINARY'
|
||||
|
@ -204,10 +204,12 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
|
|||
</>
|
||||
)}
|
||||
|
||||
{isNumeric && (
|
||||
<NumericBetPanel
|
||||
className="sm:hidden"
|
||||
contract={contract as NumericContract}
|
||||
/>
|
||||
)}
|
||||
|
||||
{isResolved && (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue
Block a user