diff --git a/src/layouts/Header.js b/src/layouts/Header.js index b7e7a75905975563bcdef934508c25ece95403e0..4e35cf6f9919842282cdccdedc107a7c38875a8e 100644 --- a/src/layouts/Header.js +++ b/src/layouts/Header.js @@ -99,12 +99,12 @@ class HeaderView extends PureComponent { visible: true, }); } - if (scrollTop > 300 && visible) { + else if (scrollTop > 300 && visible) { this.setState({ visible: false, }); } - if (scrollTop < 300 && !visible) { + else if (scrollTop < 300 && !visible) { this.setState({ visible: true, });