show resolved n/a for numeric markets

This commit is contained in:
mantikoros 2022-05-26 09:39:06 -05:00
parent 6f23c16df7
commit 7b0be014eb

View File

@ -20,6 +20,7 @@ import {
import { import {
AnswerLabel, AnswerLabel,
BinaryContractOutcomeLabel, BinaryContractOutcomeLabel,
CancelLabel,
FreeResponseOutcomeLabel, FreeResponseOutcomeLabel,
} from '../outcome-label' } from '../outcome-label'
import { getOutcomeProbability, getTopAnswer } from 'common/calculate' import { getOutcomeProbability, getTopAnswer } from 'common/calculate'
@ -240,7 +241,12 @@ export function NumericResolutionOrExpectation(props: {
{resolution ? ( {resolution ? (
<> <>
<div className={clsx('text-base text-gray-500')}>Resolved</div> <div className={clsx('text-base text-gray-500')}>Resolved</div>
{resolution === 'CANCEL' ? (
<CancelLabel />
) : (
<div className="text-blue-400">{resolutionValue}</div> <div className="text-blue-400">{resolutionValue}</div>
)}
</> </>
) : ( ) : (
<> <>