Limit order trade log: '/' to 'of'. Remove 'of' in 'of YES'.

This commit is contained in:
James Grugett 2022-10-06 18:03:44 -05:00
parent d9c8925ea0
commit 9d12fa3af0

View File

@ -64,11 +64,11 @@ export function BetStatusText(props: {
}, [challengeSlug, contract.id])
const bought = amount >= 0 ? 'bought' : 'sold'
const money = formatMoney(Math.abs(amount))
const outOfTotalAmount =
bet.limitProb !== undefined && bet.orderAmount !== undefined
? ` / ${formatMoney(bet.orderAmount)}`
? ` of ${bet.isCancelled ? money : formatMoney(bet.orderAmount)}`
: ''
const money = formatMoney(Math.abs(amount))
const hadPoolMatch =
(bet.limitProb === undefined ||
@ -105,7 +105,6 @@ export function BetStatusText(props: {
{!hideOutcome && (
<>
{' '}
of{' '}
<OutcomeLabel
outcome={outcome}
value={(bet as any).value}