diff --git a/functions/src/cancel-bet.ts b/functions/src/cancel-bet.ts index 27e65ffb..d29a6cee 100644 --- a/functions/src/cancel-bet.ts +++ b/functions/src/cancel-bet.ts @@ -21,7 +21,7 @@ export const cancelbet = newEndpoint({}, async (req, auth) => { if (bet.userId !== auth.uid) throw new APIError(400, 'Not authorized to cancel bet.') if (bet.limitProb === undefined) - throw new APIError(400, 'Not a limit bet: Cannot cancel.') + throw new APIError(400, 'Not a limit order: Cannot cancel.') if (bet.isCancelled) throw new APIError(400, 'Bet already cancelled.') trans.update(betDoc.ref, { isCancelled: true }) diff --git a/functions/src/place-bet.ts b/functions/src/place-bet.ts index 52daf953..3c428f43 100644 --- a/functions/src/place-bet.ts +++ b/functions/src/place-bet.ts @@ -186,7 +186,7 @@ export const updateMakers = ( const totalAmount = sumBy(fills, 'amount') const isFilled = floatingEqual(totalAmount, bet.orderAmount) - log('Updated a matched limit bet.') + log('Updated a matched limit order.') trans.update(contractDoc.collection('bets').doc(bet.id), { fills, isFilled, diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index 78f98390..57218844 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -71,7 +71,7 @@ export function BetPanel(props: { >
- {isLimitOrder ? <>Limit bet : <>Place your bet} + {isLimitOrder ? <>Limit order : <>Place your bet}