Disable quick bet for resolved markets

This commit is contained in:
James Grugett 2022-05-28 15:26:55 -05:00
parent c3a5205d8e
commit 29a05ffff2

View File

@ -40,7 +40,7 @@ export function ContractCard(props: {
const { question, outcomeType } = contract const { question, outcomeType } = contract
const { resolution } = contract const { resolution } = contract
const marketClosed = (contract.closeTime || Infinity) < Date.now() const marketClosed = (contract.closeTime || Infinity) < Date.now() || !!resolution
const showQuickBet = !( const showQuickBet = !(
marketClosed || marketClosed ||
(outcomeType === 'FREE_RESPONSE' && getTopAnswer(contract) === undefined) (outcomeType === 'FREE_RESPONSE' && getTopAnswer(contract) === undefined)