diff --git a/web/pages/create.tsx b/web/pages/create.tsx index 0601c484..591e21c7 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -101,7 +101,9 @@ export default function NewContract() { className="input input-bordered input-md" min={1} max={99} - onChange={(e) => setInitialProb(parseInt(e.target.value))} + onChange={(e) => + setInitialProb(parseInt(e.target.value.substring(0, 2))) + } /> % @@ -158,11 +160,10 @@ export default function NewContract() { />