diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index da1b6ac8..9386b8c6 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -145,9 +145,7 @@ export function BinaryResolutionOrChance(props: { ) : ( <> -
- {getBinaryProbPercent(contract)} -
+
{getBinaryProbPercent(contract)}
chance
diff --git a/web/components/contract/quick-bet.tsx b/web/components/contract/quick-bet.tsx index b514f980..74ddbb50 100644 --- a/web/components/contract/quick-bet.tsx +++ b/web/components/contract/quick-bet.tsx @@ -12,7 +12,6 @@ import { DPM, Binary, NumericContract, - FreeResponse, FreeResponseContract, } from 'common/contract' import { @@ -31,18 +30,13 @@ import TriangleFillIcon from 'web/lib/icons/triangle-fill-icon' import { Col } from '../layout/col' import { OUTCOME_TO_COLOR } from '../outcome-label' import { useSaveShares } from '../use-save-shares' -import { - BinaryResolutionOrChance, - NumericResolutionOrExpectation, - FreeResponseResolutionOrChance, -} from './contract-card' export function QuickBet(props: { contract: Contract }) { const { contract } = props const user = useUser() const userBets = useUserContractBets(user?.id, contract.id) - const { yesFloorShares, noFloorShares, yesShares, noShares } = useSaveShares( + const { yesFloorShares, noFloorShares } = useSaveShares( contract as FullContract, userBets )