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)}
|
{formatMoney(expectation)}
|
||||||
</div>
|
</div>
|
||||||
</Col> */}
|
</Col> */}
|
||||||
|
{isBinary && (
|
||||||
|
<>
|
||||||
<Col>
|
<Col>
|
||||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||||
Payout if <YesLabel />
|
Payout if <YesLabel />
|
||||||
|
@ -374,6 +376,8 @@ export function MyBetsSummary(props: {
|
||||||
{formatMoney(noWinnings)}
|
{formatMoney(noWinnings)}
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<Col>
|
<Col>
|
||||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||||
{isBinary ? (
|
{isBinary ? (
|
||||||
|
|
|
@ -177,12 +177,8 @@ function BetsSection(props: {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Title className="px-2" text="Your trades" />
|
<Title className="px-2" text="Your trades" />
|
||||||
{isBinary && (
|
|
||||||
<>
|
|
||||||
<MyBetsSummary className="px-2" contract={contract} bets={userBets} />
|
<MyBetsSummary className="px-2" contract={contract} bets={userBets} />
|
||||||
<Spacer h={6} />
|
<Spacer h={6} />
|
||||||
</>
|
|
||||||
)}
|
|
||||||
<ContractBetsTable contract={contract} bets={userBets} />
|
<ContractBetsTable contract={contract} bets={userBets} />
|
||||||
<Spacer h={12} />
|
<Spacer h={12} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user