Keep page wide if showing resolve panel

This commit is contained in:
jahooma 2022-01-10 10:32:54 -06:00
parent 829c8a4b75
commit a04c978408

View File

@ -56,7 +56,7 @@ export default function ContractPage(props: {
const isCreator = user?.id === creatorId const isCreator = user?.id === creatorId
const allowTrade = const allowTrade =
!isResolved && (!contract.closeTime || contract.closeTime > Date.now()) !isResolved && (!contract.closeTime || contract.closeTime > Date.now())
const allowResolve = !isResolved && isCreator && user const allowResolve = !isResolved && isCreator && !!user
const { probPercent } = compute(contract) const { probPercent } = compute(contract)
@ -73,7 +73,7 @@ export default function ContractPage(props: {
} }
return ( return (
<Page wide={allowTrade}> <Page wide={allowTrade || allowResolve}>
<SEO <SEO
title={question} title={question}
description={description} description={description}