Free response: Show invested and payouts on market page, don't show payout if yes/no

This commit is contained in:
James Grugett 2022-02-28 15:58:13 -08:00
parent c6eb729e46
commit a680d80793
2 changed files with 22 additions and 22 deletions

View File

@ -358,22 +358,26 @@ export function MyBetsSummary(props: {
{formatMoney(expectation)}
</div>
</Col> */}
<Col>
<div className="whitespace-nowrap text-sm text-gray-500">
Payout if <YesLabel />
</div>
<div className="whitespace-nowrap">
{formatMoney(yesWinnings)}
</div>
</Col>
<Col>
<div className="whitespace-nowrap text-sm text-gray-500">
Payout if <NoLabel />
</div>
<div className="whitespace-nowrap">
{formatMoney(noWinnings)}
</div>
</Col>
{isBinary && (
<>
<Col>
<div className="whitespace-nowrap text-sm text-gray-500">
Payout if <YesLabel />
</div>
<div className="whitespace-nowrap">
{formatMoney(yesWinnings)}
</div>
</Col>
<Col>
<div className="whitespace-nowrap text-sm text-gray-500">
Payout if <NoLabel />
</div>
<div className="whitespace-nowrap">
{formatMoney(noWinnings)}
</div>
</Col>
</>
)}
<Col>
<div className="whitespace-nowrap text-sm text-gray-500">
{isBinary ? (

View File

@ -177,12 +177,8 @@ function BetsSection(props: {
return (
<div>
<Title className="px-2" text="Your trades" />
{isBinary && (
<>
<MyBetsSummary className="px-2" contract={contract} bets={userBets} />
<Spacer h={6} />
</>
)}
<MyBetsSummary className="px-2" contract={contract} bets={userBets} />
<Spacer h={6} />
<ContractBetsTable contract={contract} bets={userBets} />
<Spacer h={12} />
</div>