diff --git a/web/components/challenges/create-challenge-modal.tsx b/web/components/challenges/create-challenge-modal.tsx
index 6f91a6d4..6c810a44 100644
--- a/web/components/challenges/create-challenge-modal.tsx
+++ b/web/components/challenges/create-challenge-modal.tsx
@@ -147,7 +147,7 @@ function CreateChallengeForm(props: {
setFinishedCreating(true)
}}
>
-
+
Challenge a friend to bet on{' '}
@@ -170,72 +170,76 @@ function CreateChallengeForm(props: {
)}
-
-
You'll bet:
-
-
- setChallengeInfo((m: challengeInfo) => {
- return {
- ...m,
- amount: newAmount ?? 0,
- acceptorAmount: editingAcceptorAmount
- ? m.acceptorAmount
- : newAmount ?? 0,
- }
- })
- }
- error={undefined}
- label={'M$'}
- inputClassName="w-24"
- />
- on
- {challengeInfo.outcome === 'YES' ? : }
-
-
-
-
-
If they bet:
-
-
{
- setEditingAcceptorAmount(true)
-
+ amount={challengeInfo.amount || undefined}
+ onChange={(newAmount) =>
setChallengeInfo((m: challengeInfo) => {
return {
...m,
- acceptorAmount: newAmount ?? 0,
+ amount: newAmount ?? 0,
+ acceptorAmount: editingAcceptorAmount
+ ? m.acceptorAmount
+ : newAmount ?? 0,
}
})
- }}
+ }
error={undefined}
label={'M$'}
inputClassName="w-24"
/>
-
- on
- {challengeInfo.outcome === 'YES' ? : }
-
-
+ on
+ {challengeInfo.outcome === 'YES' ? : }
+
+
+
+
+ If they bet:
+
+
+
{
+ setEditingAcceptorAmount(true)
+
+ setChallengeInfo((m: challengeInfo) => {
+ return {
+ ...m,
+ acceptorAmount: newAmount ?? 0,
+ }
+ })
+ }}
+ error={undefined}
+ label={'M$'}
+ inputClassName="w-24"
+ />
+
+ on
+ {challengeInfo.outcome === 'YES' ? : }
+
+
+
{contract && (