Show up arrow if shares in numeric markets

This commit is contained in:
Ian Philips 2022-05-26 06:23:22 -06:00
parent 38fa58406d
commit 6f23c16df7

View File

@ -49,7 +49,8 @@ export function QuickBet(props: { contract: Contract }) {
userBets, userBets,
topAnswer?.number.toString() || undefined topAnswer?.number.toString() || undefined
) )
const hasUpShares = yesFloorShares || contract.outcomeType === 'NUMERIC' const hasUpShares =
yesFloorShares || (noFloorShares && contract.outcomeType === 'NUMERIC')
const hasDownShares = const hasDownShares =
noFloorShares && yesFloorShares <= 0 && contract.outcomeType !== 'NUMERIC' noFloorShares && yesFloorShares <= 0 && contract.outcomeType !== 'NUMERIC'