fix bet summary selling
This commit is contained in:
parent
50eee33a6e
commit
83d8f18bd7
|
@ -417,8 +417,8 @@ export function BetsSummary(props: {
|
||||||
const [showSellModal, setShowSellModal] = useState(false)
|
const [showSellModal, setShowSellModal] = useState(false)
|
||||||
const user = useUser()
|
const user = useUser()
|
||||||
|
|
||||||
const sharesOutcome = floatingEqual(totalShares.YES, 0)
|
const sharesOutcome = floatingEqual(totalShares.YES ?? 0, 0)
|
||||||
? floatingEqual(totalShares.NO, 0)
|
? floatingEqual(totalShares.NO ?? 0, 0)
|
||||||
? undefined
|
? undefined
|
||||||
: 'NO'
|
: 'NO'
|
||||||
: 'YES'
|
: 'YES'
|
||||||
|
@ -498,7 +498,7 @@ export function BetsSummary(props: {
|
||||||
{formatMoney(profit)} <ProfitBadge profitPercent={profitPercent} />
|
{formatMoney(profit)} <ProfitBadge profitPercent={profitPercent} />
|
||||||
{isYourBets &&
|
{isYourBets &&
|
||||||
isCpmm &&
|
isCpmm &&
|
||||||
isBinary &&
|
(isBinary || isPseudoNumeric) &&
|
||||||
!isClosed &&
|
!isClosed &&
|
||||||
!resolution &&
|
!resolution &&
|
||||||
hasShares &&
|
hasShares &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user