Remove usage of == and !=
This commit is contained in:
parent
205a617c51
commit
b67cd10c64
21 changed files with 79 additions and 78 deletions
|
@ -48,13 +48,13 @@ export default class ScrollManager extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
if (target.scrollTop == 0) {
|
||||
if (target.scrollTop === 0) {
|
||||
this.props.onScrollTop();
|
||||
}
|
||||
}
|
||||
|
||||
handleScroll() {
|
||||
if (this.props.target.current.scrollTop == 0) {
|
||||
if (this.props.target.current.scrollTop === 0) {
|
||||
this.props.onScrollTop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue