Skip to content

Commit

Permalink
Default amount = 1 on cash
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Sep 25, 2024
1 parent 5eb488f commit 7b94b0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/components/bet/bet-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<number | undefined>(
initialBetAmount
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7b94b0f

Please sign in to comment.