From 62c18a7344aeedf38a5fca493bae5c66cc4577bf Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Tue, 23 Aug 2022 14:23:58 -0700 Subject: [PATCH] Reset prob strike-out when bet modal closed --- web/components/bet-inline.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/components/bet-inline.tsx b/web/components/bet-inline.tsx index ebbaa9ee..64780f4b 100644 --- a/web/components/bet-inline.tsx +++ b/web/components/bet-inline.tsx @@ -22,7 +22,7 @@ import { formatMoney } from 'common/util/format' export function BetInline(props: { contract: CPMMBinaryContract | PseudoNumericContract className?: string - setProbAfter: (probAfter: number) => void + setProbAfter: (probAfter: number | undefined) => void onClose: () => void }) { const { contract, className, setProbAfter, onClose } = props @@ -113,7 +113,12 @@ export function BetInline(props: { )} -