fix bet summary selling

This commit is contained in:
mantikoros 2022-07-13 11:56:59 -05:00
parent 50eee33a6e
commit 83d8f18bd7

View File

@ -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)} <ProfitBadge profitPercent={profitPercent} />
{isYourBets &&
isCpmm &&
isBinary &&
(isBinary || isPseudoNumeric) &&
!isClosed &&
!resolution &&
hasShares &&