Skip to content

Commit

Permalink
style: code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Aswin Lakshmanan committed Oct 30, 2020
1 parent 1e4240c commit c1cd9b2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ export default class VerticalSlider extends React.Component<props, state> {
this._changeState(value);
}
}
shouldComponentUpdate(nextProps: props, nextState: state){
if(nextProps.value && nextProps.value != nextState.value ){

shouldComponentUpdate(nextProps: props, nextState: state) {
if (nextProps.value && nextProps.value !== nextState.value) {
this._changeState(nextProps.value);
}
return false
return false;
}

render() {
Expand Down

0 comments on commit c1cd9b2

Please sign in to comment.