diff --git a/web/components/contract/quick-bet.tsx b/web/components/contract/quick-bet.tsx index 1740a6d9..c5633c0a 100644 --- a/web/components/contract/quick-bet.tsx +++ b/web/components/contract/quick-bet.tsx @@ -140,6 +140,8 @@ export function QuickBet(props: { contract: Contract; user: User }) { } } + const textColor = `text-${getColor(contract, previewProb)}` + return ( ) : ( )} @@ -227,14 +229,14 @@ export function ProbBar(props: { contract: Contract; previewProb?: number }) { <>
= 0.5 ? 'primary' : 'red-400' + if ((contract.closeTime ?? Infinity) < Date.now()) { + return 'gray-400' + } + + // TODO: Not sure why eg green-400 doesn't work here; try upgrading Tailwind + return 'primary' }