summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-11-06 10:36:46 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-11-06 10:36:46 -0500
commit0d1fe806a06df9a0fcc97694d0c9e96835bbfb0b (patch)
tree8fa7e3524afcdd6a645a2c4f7638c3c67a5fbe6e
parent19328ab5b8c8168f6a30e38b2dc5c7c1635732d0 (diff)
parent0f4f1f90e7a3ae71f4432ea9ca7892993179d3ba (diff)
downloadchat-0d1fe806a06df9a0fcc97694d0c9e96835bbfb0b.tar.gz
chat-0d1fe806a06df9a0fcc97694d0c9e96835bbfb0b.tar.bz2
chat-0d1fe806a06df9a0fcc97694d0c9e96835bbfb0b.zip
Merge pull request #1335 from mattermost/triple-dot-fix
Fix user profile never updating properly
-rw-r--r--web/react/components/user_profile.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/user_profile.jsx b/web/react/components/user_profile.jsx
index c4402ae23..eb0a8f0ca 100644
--- a/web/react/components/user_profile.jsx
+++ b/web/react/components/user_profile.jsx
@@ -41,7 +41,7 @@ export default class UserProfile extends React.Component {
UserStore.removeChangeListener(this.onChange);
}
onChange(userId) {
- if (userId === this.props.userId) {
+ if (!userId || userId === this.props.userId) {
var newState = this.getStateFromStores(this.props.userId);
if (!Utils.areStatesEqual(newState, this.state)) {
this.setState(newState);