From 16c11adc61af6735f0342a8ce16ab1f6d2a94767 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 17 Jul 2022 15:38:30 -0500 Subject: [PATCH] Conditionally show YES or NO max payout --- web/components/bet-panel.tsx | 84 +++++++++++++++++++----------------- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index e78a9bdc..7c4ada58 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -554,53 +554,59 @@ function RangeOrderPanel(props: { /> - - + {lowLimitProb !== undefined && ( + + +
+ {isPseudoNumeric ? ( + 'Max payout' + ) : ( + <> + Max payout + + )} +
+ +
- {isPseudoNumeric ? ( - 'Max payout' - ) : ( - <> - Max payout - - )} + + {formatMoney(lowPayout)} + + (+{lowReturnPercent})
-
-
- - {formatMoney(lowPayout)} - - (+{lowReturnPercent}) -
-
- - + )} + {highLimitProb !== undefined && ( + + +
+ {isPseudoNumeric ? ( + 'Max payout' + ) : ( + <> + Max payout + + )} +
+ +
- {isPseudoNumeric ? ( - 'Max payout' - ) : ( - <> - Max payout - - )} + + {formatMoney(highPayout)} + + (+{highReturnPercent})
-
-
- - {formatMoney(highPayout)} - - (+{highReturnPercent}) -
-
+ )} - + {(lowLimitProb !== undefined || highLimitProb !== undefined) && ( + + )} {user && (