From a04c9784082ba48d11ce8baa24309b24116c1846 Mon Sep 17 00:00:00 2001 From: jahooma Date: Mon, 10 Jan 2022 10:32:54 -0600 Subject: [PATCH] Keep page wide if showing resolve panel --- web/pages/[username]/[contractSlug].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pages/[username]/[contractSlug].tsx b/web/pages/[username]/[contractSlug].tsx index 7aabede2..6dc7629b 100644 --- a/web/pages/[username]/[contractSlug].tsx +++ b/web/pages/[username]/[contractSlug].tsx @@ -56,7 +56,7 @@ export default function ContractPage(props: { const isCreator = user?.id === creatorId const allowTrade = !isResolved && (!contract.closeTime || contract.closeTime > Date.now()) - const allowResolve = !isResolved && isCreator && user + const allowResolve = !isResolved && isCreator && !!user const { probPercent } = compute(contract) @@ -73,7 +73,7 @@ export default function ContractPage(props: { } return ( - +