summaryrefslogtreecommitdiffstats
path: root/webapp/components/logged_in.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/logged_in.jsx')
-rw-r--r--webapp/components/logged_in.jsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/webapp/components/logged_in.jsx b/webapp/components/logged_in.jsx
index 3941dd12c..9f1fac6bc 100644
--- a/webapp/components/logged_in.jsx
+++ b/webapp/components/logged_in.jsx
@@ -63,11 +63,12 @@ export default class LoggedIn extends React.Component {
onUserChanged() {
// Grab the current user
const user = UserStore.getCurrentUser();
- this.setupUser(user);
-
- this.setState({
- user
- });
+ if (!Utils.areObjectsEqual(this.state.user, user)) {
+ this.setupUser(user);
+ this.setState({
+ user
+ });
+ }
}
componentWillMount() {