diff --git a/MessageBar.js b/MessageBar.js index a39a7fb..d4e5c99 100644 --- a/MessageBar.js +++ b/MessageBar.js @@ -35,7 +35,7 @@ class MessageBar extends Component { } componentWillReceiveProps(nextProps) { - if (nextProps != null && Object.keys(nextProps).length > 0) { + if (nextProps && Object.keys(nextProps).length > 0) { this.setNewState(nextProps); } }