diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index 5037f91f..205c68b6 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -57,23 +57,22 @@ export function AmountInput(props: { onChange={(e) => onAmountChange(e.target.value)} /> - {user && ( - - {error ? ( -
- {error} + {user && + (error ? ( +
+ {error} +
+ ) : ( + +
+ Remaining balance
- ) : ( - -
Remaining balance
-
- {formatMoney(Math.floor(remainingBalance))} -
- - )} - {user.balance !== 1000 && } - - )} + +
{formatMoney(Math.floor(remainingBalance))}
+ {user.balance !== 1000 && } +
+ + ))} ) } diff --git a/web/pages/create.tsx b/web/pages/create.tsx index be632c3b..36096990 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -31,7 +31,7 @@ export default function NewContract() { const [question, setQuestion] = useState('') const [description, setDescription] = useState('') - const [ante, setAnte] = useState(0) + const [ante, setAnte] = useState(undefined) const [anteError, setAnteError] = useState() const [closeDate, setCloseDate] = useState('') @@ -111,7 +111,7 @@ export default function NewContract() { Subsidize your market