From 43e5bbea372cb2c4a98d00fae19cdabd165a8f48 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Fri, 10 Mar 2017 05:17:22 -0500
Subject: Fix user list updating when removing a user from team (#5712)

---
 webapp/components/member_list_team.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'webapp/components/member_list_team.jsx')

diff --git a/webapp/components/member_list_team.jsx b/webapp/components/member_list_team.jsx
index 41057a566..e06d61b0a 100644
--- a/webapp/components/member_list_team.jsx
+++ b/webapp/components/member_list_team.jsx
@@ -43,7 +43,7 @@ export default class MemberListTeam extends React.Component {
     }
 
     componentDidMount() {
-        UserStore.addInTeamChangeListener(this.onChange);
+        UserStore.addInTeamChangeListener(this.onTeamChange);
         UserStore.addStatusesChangeListener(this.onChange);
         TeamStore.addChangeListener(this.onTeamChange);
         TeamStore.addStatsChangeListener(this.onStatsChange);
@@ -53,7 +53,7 @@ export default class MemberListTeam extends React.Component {
     }
 
     componentWillUnmount() {
-        UserStore.removeInTeamChangeListener(this.onChange);
+        UserStore.removeInTeamChangeListener(this.onTeamChange);
         UserStore.removeStatusesChangeListener(this.onChange);
         TeamStore.removeChangeListener(this.onTeamChange);
         TeamStore.removeStatsChangeListener(this.onStatsChange);
-- 
cgit v1.2.3-1-g7c22

