Free response: Show invested and payouts on market page, don't show payout if yes/no
This commit is contained in:
parent
c6eb729e46
commit
a680d80793
|
@ -358,6 +358,8 @@ export function MyBetsSummary(props: {
|
|||
{formatMoney(expectation)}
|
||||
</div>
|
||||
</Col> */}
|
||||
{isBinary && (
|
||||
<>
|
||||
<Col>
|
||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||
Payout if <YesLabel />
|
||||
|
@ -374,6 +376,8 @@ export function MyBetsSummary(props: {
|
|||
{formatMoney(noWinnings)}
|
||||
</div>
|
||||
</Col>
|
||||
</>
|
||||
)}
|
||||
<Col>
|
||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||
{isBinary ? (
|
||||
|
|
|
@ -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} />
|
||||
</>
|
||||
)}
|
||||
<ContractBetsTable contract={contract} bets={userBets} />
|
||||
<Spacer h={12} />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user