From c871417d476f868f92b16eaa408499994c8aaf38 Mon Sep 17 00:00:00 2001 From: nzambello Date: Mon, 13 Dec 2021 20:19:29 +0100 Subject: [PATCH] fix: number input handling --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 548e87b..a77904f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -92,7 +92,7 @@ function App() { placeholder="distance" min={1} value={stopDistance} - onChange={(e) => setStopDistance(e.target.value)} + onChange={(e) => setStopDistance(parseInt(e.target.value, 10))} />