Conditionally show YES or NO max payout

This commit is contained in:
James Grugett 2022-07-17 15:38:30 -05:00
parent bc33f9572f
commit 16c11adc61

View File

@ -554,6 +554,7 @@ function RangeOrderPanel(props: {
/>
<Col className="mt-3 w-full gap-3">
{lowLimitProb !== undefined && (
<Row className="items-center justify-between gap-2 text-sm">
<Row className="flex-nowrap items-center gap-2 whitespace-nowrap text-gray-500">
<div>
@ -576,6 +577,8 @@ function RangeOrderPanel(props: {
(+{lowReturnPercent})
</div>
</Row>
)}
{highLimitProb !== undefined && (
<Row className="items-center justify-between gap-2 text-sm">
<Row className="flex-nowrap items-center gap-2 whitespace-nowrap text-gray-500">
<div>
@ -598,9 +601,12 @@ function RangeOrderPanel(props: {
(+{highReturnPercent})
</div>
</Row>
)}
</Col>
{(lowLimitProb !== undefined || highLimitProb !== undefined) && (
<Spacer h={8} />
)}
{user && (
<button