From 29a05ffff221ea2c854104aa4ccdf199f29a015b Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sat, 28 May 2022 15:26:55 -0500 Subject: [PATCH] Disable quick bet for resolved markets --- web/components/contract/contract-card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index 84e2db8f..127a8b7f 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -40,7 +40,7 @@ export function ContractCard(props: { const { question, outcomeType } = contract const { resolution } = contract - const marketClosed = (contract.closeTime || Infinity) < Date.now() + const marketClosed = (contract.closeTime || Infinity) < Date.now() || !!resolution const showQuickBet = !( marketClosed || (outcomeType === 'FREE_RESPONSE' && getTopAnswer(contract) === undefined)