From e481b971d0b61abb91d0e867f0ea80552d07747d Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Tue, 25 Jan 2022 13:31:25 -0600 Subject: [PATCH] Show pool amount in feed --- web/components/contract-feed.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx index 7bff5f59..99a4edb0 100644 --- a/web/components/contract-feed.tsx +++ b/web/components/contract-feed.tsx @@ -260,12 +260,14 @@ function FeedQuestion(props: { contract: Contract }) { const { contract } = props const { creatorName, creatorUsername, createdTime, question, resolution } = contract - const { probPercent } = contractMetrics(contract) + const { probPercent, truePool } = contractMetrics(contract) // 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'}