From 7b94b0fab9e7f12a253e6dab043408eccc3c2f5a Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Wed, 25 Sep 2024 16:06:29 -0700 Subject: [PATCH] Default amount = 1 on cash --- web/components/bet/bet-panel.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/components/bet/bet-panel.tsx b/web/components/bet/bet-panel.tsx index f92dded4bb..59d20e6c70 100644 --- a/web/components/bet/bet-panel.tsx +++ b/web/components/bet/bet-panel.tsx @@ -260,8 +260,8 @@ export const BuyPanelBody = (props: { isBinaryMC && multiProps ? multiProps.answerText ?? multiProps.answerToBuy.text : undefined - - const initialBetAmount = marketTier === 'play' ? 5 : 50 + const isCashContract = contract.token === 'CASH' + const initialBetAmount = isCashContract ? 1 : marketTier === 'play' ? 5 : 50 const [betAmount, setBetAmount] = useState( initialBetAmount @@ -369,7 +369,6 @@ export const BuyPanelBody = (props: { } } const [showLocationMonitor, setShowLocationMonitor] = useState(false) - const isCashContract = contract.token === 'CASH' const { status: verificationStatus, message: verificationMessage } = user && privateUser