Skip to content

Commit

Permalink
Ranges are now rounded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetelinpetrov committed Oct 23, 2024
1 parent 58324ee commit 2a710e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SidePanel/Gains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default () => {
<NumberInput
key={`${index + 1}`}
label={`Range ${index + 1} (${gainTitles[index]})`}
value={gain / 100}
value={Number((gain / 100).toFixed(2))}
range={{ min: 0.9, max: 1.1, decimals: 2 }}
onChange={value => {
dispatch(
Expand Down

0 comments on commit 2a710e9

Please sign in to comment.