Skip to content

Commit

Permalink
fix(widget-chat): Fix issue trying to connect to mercury
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernie Zang committed Sep 27, 2016
1 parent 4349d43 commit 7271f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/widget-chat/src/containers/chat-widget/index.js
Expand Up @@ -18,7 +18,7 @@ export class ChatWidget extends Component {
componentDidMount() {
const props = this.props;
if (!props.user) {
fetchUser(props.userId);
props.fetchUser(props.userId);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/widget-chat/src/modules/redux-spark/component.js
Expand Up @@ -22,7 +22,7 @@ class SparkComponent extends Component {
updateSparkState({connecting: spark.mercury.connecting});
});

connectToMercury(spark);
this.props.connectToMercury(spark);
}

componentWillReceiveProps(nextProps) {
Expand Down

0 comments on commit 7271f1a

Please sign in to comment.