From bf2f289e29ebfc7bd7c963591a55567d49ad4c35 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 23 Feb 2022 22:20:42 -0600 Subject: [PATCH] Show pool amount in feed for all markets including resolved and without close date --- web/components/contract-feed.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx index 318a07a5..dc1d1bbd 100644 --- a/web/components/contract-feed.tsx +++ b/web/components/contract-feed.tsx @@ -305,15 +305,13 @@ function FeedQuestion(props: { contract: Contract }) { const { truePool } = contractMetrics(contract) const isBinary = outcomeType === 'BINARY' - // Currently hidden on mobile; ideally we'd fit this in somewhere. const closeMessage = contract.isResolved || !contract.closeTime ? null : ( - - {formatMoney(truePool)} pool + <> {contract.closeTime > Date.now() ? 'Closes' : 'Closed'} - + ) return ( @@ -330,7 +328,11 @@ function FeedQuestion(props: { contract: Contract }) { username={creatorUsername} />{' '} asked - {closeMessage} + {/* Currently hidden on mobile; ideally we'd fit this in somewhere. */} + + {formatMoney(truePool)} pool + {closeMessage} +