diff --git a/src/components/Settings/Positions.tsx b/src/components/Settings/Positions.tsx index bb06cb7..c9b1431 100644 --- a/src/components/Settings/Positions.tsx +++ b/src/components/Settings/Positions.tsx @@ -244,23 +244,23 @@ export const PositionsSettings: Component = () => {
{ - setState( - "positions", - idx(), - "quantity", - parseFloat(e.currentTarget.value) || 0 - ); - }} + lang="en" + onInput={createOptionalNumberInputHandler( + (v) => { + setState( + "positions", + idx(), + "quantity", + v || 0 + ); + } + )} />