From 5a4bb65d8057bc67b7630d4a8461f1906dfe402a Mon Sep 17 00:00:00 2001 From: mantikoros Date: Thu, 2 Jun 2022 16:00:38 -0500 Subject: [PATCH] remove extra space (to fix prettier static check) --- web/components/contract/quick-bet.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/components/contract/quick-bet.tsx b/web/components/contract/quick-bet.tsx index 34eac6f4..8f642656 100644 --- a/web/components/contract/quick-bet.tsx +++ b/web/components/contract/quick-bet.tsx @@ -160,7 +160,7 @@ export function QuickBet(props: { contract: Contract; user: User }) { )} @@ -269,10 +269,15 @@ export function getColor(contract: Contract, previewProb?: number) { 'primary' ) } + if (contract.outcomeType === 'NUMERIC') { return 'blue-400' } + if (contract.outcomeType === 'FREE_RESPONSE') { + return 'blue-400' + } + const marketClosed = (contract.closeTime || Infinity) < Date.now() const prob = previewProb ?? getProb(contract) return marketClosed ? 'gray-400' : prob >= 0.5 ? 'primary' : 'red-400'