Clean up comments

This commit is contained in:
Austin Chen 2022-05-24 09:00:46 -07:00
parent 7d47a5910f
commit f761d64228

View File

@ -46,7 +46,6 @@ export function QuickBet(props: { contract: Contract }) {
const hasDownShares =
contract.outcomeType === 'BINARY' ? noFloorShares : yesFloorShares
// TODO: Consider making up/down two different components, for code reuse?
const [upHover, setUpHover] = useState(false)
const [downHover, setDownHover] = useState(false)
@ -200,7 +199,7 @@ function QuickOutcomeView(props: {
}) {
const { contract, previewProb, caption } = props
const { outcomeType } = contract
// If there's a preview probability,
// If there's a preview prob, display that instead of the current prob
const override =
previewProb === undefined ? undefined : formatPercent(previewProb)
const textColor = `text-${getColor(contract, previewProb)}`