Skip to content

Commit

Permalink
fix edit
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenWizard2015 committed May 15, 2024
1 parent 52418ea commit 9166fa2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/components/TeaLevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ function TeaLevel({
<p>last tea level: {lastTeaLevel.toFixed(2)}%</p>
</div>
<div>
<input type="number" step="0.01" value={calcSpeed.toFixed(2)} />
<input
type="number" step="0.01"
value={calcSpeed.toFixed(2)}
onChange={(e) => setCalcSpeed(parseFloat(e.target.value))}
/>
<button onClick={onSpeedSet}>Set Speed</button>
</div>
</>
Expand Down

0 comments on commit 9166fa2

Please sign in to comment.