remove extra space (to fix prettier static check)

This commit is contained in:
mantikoros 2022-06-02 16:00:38 -05:00
parent 5af2e1fef0
commit 5a4bb65d80

View File

@ -269,10 +269,15 @@ export function getColor(contract: Contract, previewProb?: number) {
'primary' 'primary'
) )
} }
if (contract.outcomeType === 'NUMERIC') { if (contract.outcomeType === 'NUMERIC') {
return 'blue-400' return 'blue-400'
} }
if (contract.outcomeType === 'FREE_RESPONSE') {
return 'blue-400'
}
const marketClosed = (contract.closeTime || Infinity) < Date.now() const marketClosed = (contract.closeTime || Infinity) < Date.now()
const prob = previewProb ?? getProb(contract) const prob = previewProb ?? getProb(contract)
return marketClosed ? 'gray-400' : prob >= 0.5 ? 'primary' : 'red-400' return marketClosed ? 'gray-400' : prob >= 0.5 ? 'primary' : 'red-400'