From 06c5c97a03f60bca637a3beb6058cdaccfdd3fb4 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Thu, 2 Jun 2022 16:25:41 -0500 Subject: [PATCH] down betting arrow disabled for free response markets --- web/components/contract/quick-bet.tsx | 55 ++++++++++++++++----------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/web/components/contract/quick-bet.tsx b/web/components/contract/quick-bet.tsx index 8f642656..a9e6f40a 100644 --- a/web/components/contract/quick-bet.tsx +++ b/web/components/contract/quick-bet.tsx @@ -142,32 +142,41 @@ export function QuickBet(props: { contract: Contract; user: User }) { {/* Down bet triangle */} -
-
setDownHover(true)} - onMouseLeave={() => setDownHover(false)} - onClick={() => placeQuickBet('DOWN')} - >
- {hasDownShares > 0 ? ( + {contract.outcomeType !== 'BINARY' ? ( +
+
- ) : ( - - )} -
- {formatMoney(10)}
-
+ ) : ( +
+
setDownHover(true)} + onMouseLeave={() => setDownHover(false)} + onClick={() => placeQuickBet('DOWN')} + >
+ {hasDownShares > 0 ? ( + + ) : ( + + )} +
+ {formatMoney(10)} +
+
+ )} ) }