Show pool amount in feed
This commit is contained in:
parent
ed9285dbc1
commit
e481b971d0
|
@ -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 : (
|
||||
<span className="float-right text-gray-400 hidden sm:inline">
|
||||
{formatMoney(truePool)} pool
|
||||
<span className="mx-2">•</span>
|
||||
{contract.closeTime > Date.now() ? 'Closes' : 'Closed'}
|
||||
<Timestamp time={contract.closeTime || 0} />
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue
Block a user