Keep page wide if showing resolve panel
This commit is contained in:
parent
829c8a4b75
commit
a04c978408
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user