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 />
|
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 && (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user