From 0f4f1f90e7a3ae71f4432ea9ca7892993179d3ba Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Fri, 6 Nov 2015 10:13:51 -0500
Subject: Fix user profile never updating properly

---
 web/react/components/user_profile.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/components/user_profile.jsx')

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);
-- 
cgit v1.2.3-1-g7c22

