diff --git a/src/components/NoticeIcon/index.js b/src/components/NoticeIcon/index.js index 3ea8213e615783ec075176b7e3a0df0ae814bb2a..ffd153d40b9dcb00eb69cd6107a84e557d8f126a 100644 --- a/src/components/NoticeIcon/index.js +++ b/src/components/NoticeIcon/index.js @@ -37,7 +37,7 @@ export default class NoticeIcon extends PureComponent { onTabChange = tabType => { this.setState({ tabType }); - const { onTabChange } = this.state; + const { onTabChange } = this.props; onTabChange(tabType); };