From 44f44272ff116c8e1ead3420c321904f22df0744 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Mon, 3 Jan 2022 13:00:24 -0600 Subject: [PATCH] create page: minor changes --- web/pages/create.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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() { />