From 83d8f18bd7627cd09bd7c73301d6798f562d7d08 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 13 Jul 2022 11:56:59 -0500 Subject: [PATCH] fix bet summary selling --- web/components/bets-list.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index a1164798..e57b0c38 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -417,8 +417,8 @@ export function BetsSummary(props: { const [showSellModal, setShowSellModal] = useState(false) const user = useUser() - const sharesOutcome = floatingEqual(totalShares.YES, 0) - ? floatingEqual(totalShares.NO, 0) + const sharesOutcome = floatingEqual(totalShares.YES ?? 0, 0) + ? floatingEqual(totalShares.NO ?? 0, 0) ? undefined : 'NO' : 'YES' @@ -498,7 +498,7 @@ export function BetsSummary(props: { {formatMoney(profit)} {isYourBets && isCpmm && - isBinary && + (isBinary || isPseudoNumeric) && !isClosed && !resolution && hasShares &&