fix: number input handling
This commit is contained in:
parent
7ffd109ace
commit
c871417d47
|
|
@ -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))}
|
||||
/>
|
||||
<p>
|
||||
<button type="button" onClick={registerAlarm}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue