diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index c7a15a21..dc986913 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -46,6 +46,8 @@ import { useUser } from 'web/hooks/use-user' import { SellSharesModal } from './sell-modal' import { useUnfilledBets } from 'web/hooks/use-bets' import { LimitBet } from 'common/bet' +import { useSaveShares } from './use-save-shares' +import { floatingEqual } from 'common/util/math' type BetSort = 'newest' | 'profit' | 'closeTime' | 'value' type BetFilter = 'open' | 'sold' | 'closed' | 'resolved' | 'all' @@ -392,6 +394,12 @@ export function BetsSummary(props: { const [showSellModal, setShowSellModal] = useState(false) const user = useUser() + const sharesOutcome = floatingEqual(totalShares.YES, 0) + ? floatingEqual(totalShares.NO, 0) + ? undefined + : 'NO' + : 'YES' + return ( @@ -471,6 +479,7 @@ export function BetsSummary(props: { !isClosed && !resolution && hasShares && + sharesOutcome && user && ( <>