diff --git a/web/components/contract-card.tsx b/web/components/contract-card.tsx
index 58a05a0f..7e2171ab 100644
--- a/web/components/contract-card.tsx
+++ b/web/components/contract-card.tsx
@@ -48,11 +48,7 @@ export function ContractCard(props: {
{question}
-
+
@@ -60,12 +56,14 @@ export function ContractCard(props: {
}
export function ResolutionOrChance(props: {
- resolution?: 'YES' | 'NO' | 'MKT' | 'CANCEL'
- probPercent: string
+ contract: Contract
large?: boolean
className?: string
}) {
- const { resolution, probPercent, large, className } = props
+ const { contract, large, className } = props
+ const { resolution } = contract
+ const { probPercent } = contractMetrics(contract)
+ const marketClosed = (contract.closeTime || Infinity) < Date.now()
const resolutionColor = {
YES: 'text-primary',
@@ -75,6 +73,8 @@ export function ResolutionOrChance(props: {
'': '', // Empty if unresolved
}[resolution || '']
+ const probColor = marketClosed ? 'text-gray-400' : 'text-primary'
+
const resolutionText = {
YES: 'YES',
NO: 'NO',
@@ -96,10 +96,8 @@ export function ResolutionOrChance(props: {
>
) : (
<>
-
{probPercent}
-
+
{probPercent}
+
chance
>
diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx
index e3e5803e..83f6c2ef 100644
--- a/web/components/contract-feed.tsx
+++ b/web/components/contract-feed.tsx
@@ -340,11 +340,7 @@ function FeedQuestion(props: { contract: Contract }) {
>
{question}
-
+
@@ -75,12 +74,7 @@ export const ContractOverview = (props: {
-
+