diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index 57218844..6279fe2f 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -54,6 +54,10 @@ export function BetPanel(props: { const { sharesOutcome } = useSaveBinaryShares(contract, userBets) const [isLimitOrder, setIsLimitOrder] = useState(false) + const toggleLimitOrder = () => { + setIsLimitOrder(!isLimitOrder) + track('toggle limit order') + } return ( @@ -75,7 +79,7 @@ export function BetPanel(props: { @@ -242,6 +246,8 @@ function BuyPanel(props: { contractId: contract.id, amount: betAmount, outcome: betChoice, + isLimitOrder, + limitProb: limitProbScaled, }) }