diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-11-06 10:13:51 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-11-06 10:13:51 -0500 |
commit | 0f4f1f90e7a3ae71f4432ea9ca7892993179d3ba (patch) | |
tree | 6e5e34e2820e8b642c0cd35db7e0bea3152c2493 /web/react/components | |
parent | 5359de4a71fa405eb068002e8bdcaf50c5dbb214 (diff) | |
download | chat-0f4f1f90e7a3ae71f4432ea9ca7892993179d3ba.tar.gz chat-0f4f1f90e7a3ae71f4432ea9ca7892993179d3ba.tar.bz2 chat-0f4f1f90e7a3ae71f4432ea9ca7892993179d3ba.zip |
Fix user profile never updating properly
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/user_profile.jsx | 2 |
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); |