From 7429c05303ebeb3e6a0f859f6030cb4206369026 Mon Sep 17 00:00:00 2001 From: Brian Doyle Date: Sat, 24 Dec 2016 17:49:16 -0800 Subject: [PATCH] Simplified --- MessageBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }