Skip to content

Commit 27ca1d7

Browse files
committed
use !== instead of !=
1 parent ef1877b commit 27ca1d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ScrollableTabBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const ScrollableTabBar = React.createClass({
192192

193193
componentWillReceiveProps(nextProps) {
194194
// If the tabs change, force the width of the tabs container to be recalculated
195-
if (JSON.stringify(this.props.tabs) != JSON.stringify(nextProps.tabs) && this.state._containerWidth) {
195+
if (JSON.stringify(this.props.tabs) !== JSON.stringify(nextProps.tabs) && this.state._containerWidth) {
196196
this.setState({ _containerWidth: null, });
197197
}
198198
},

0 commit comments

Comments
 (0)