Skip to content

Commit

Permalink
removed preventive optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Lebejko committed Sep 1, 2021
1 parent cd6ea90 commit 3039743
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/NumericStepper/NumericStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ export const NumericStepper: React.FC<Props> = (props) => {
return null; // TODO: Remove this redundant "not-undefined" check

const onValueUpdate = (value: number) => {
if (value !== currentValue) {
setCurrentValue(value);
onChange(value);
}
setCurrentValue(value);
onChange(value);
};

const handleStepUp = () => {
Expand Down

0 comments on commit 3039743

Please sign in to comment.