Skip to content

Commit

Permalink
fix(app): Remove no-op value mutation TwoHandleRange change handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Oct 23, 2024
1 parent 508a1dc commit cf5956d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/openneuro-components/src/range/TwoHandleRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const TwoHandleRange: React.FC<TwoHandleRangeProps> = ({
Math.min(Number(changeEvent.target.value), value[1] - 1),
step,
)
value[0] = discreteValue
onChange([discreteValue, value[1]])
}
const maxChangeHandler = (
Expand All @@ -79,7 +78,6 @@ export const TwoHandleRange: React.FC<TwoHandleRangeProps> = ({
Math.max(Number(changeEvent.target.value), value[0] + 1),
step,
)
value[1] = discreteValue
onChange([value[0], discreteValue])
}

Expand Down

0 comments on commit cf5956d

Please sign in to comment.