Skip to content

Commit

Permalink
Simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjd committed Dec 25, 2016
1 parent 342b3ab commit 7429c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MessageBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 7429c05

Please sign in to comment.