From a680d80793e3b0d52b4da538c4414a62d2917c72 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Mon, 28 Feb 2022 15:58:13 -0800 Subject: [PATCH] Free response: Show invested and payouts on market page, don't show payout if yes/no --- web/components/bets-list.tsx | 36 ++++++++++++++----------- web/pages/[username]/[contractSlug].tsx | 8 ++---- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index b7fbdfc5..3be39678 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -358,22 +358,26 @@ export function MyBetsSummary(props: { {formatMoney(expectation)} */} - -
- Payout if -
-
- {formatMoney(yesWinnings)} -
- - -
- Payout if -
-
- {formatMoney(noWinnings)} -
- + {isBinary && ( + <> + +
+ Payout if +
+
+ {formatMoney(yesWinnings)} +
+ + +
+ Payout if +
+
+ {formatMoney(noWinnings)} +
+ + + )}
{isBinary ? ( diff --git a/web/pages/[username]/[contractSlug].tsx b/web/pages/[username]/[contractSlug].tsx index 72cacd3f..27141cb3 100644 --- a/web/pages/[username]/[contractSlug].tsx +++ b/web/pages/[username]/[contractSlug].tsx @@ -177,12 +177,8 @@ function BetsSection(props: { return (
- {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>