summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/websocket_actions.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index c7010dcd4..431922b0d 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -211,10 +211,10 @@ function handleNewUserEvent(msg) {
function handleLeaveTeamEvent(msg) {
if (UserStore.getCurrentId() === msg.data.user_id) {
- TeamStore.removeMyTeamMember(msg.broadcast.team_id);
+ TeamStore.removeMyTeamMember(msg.data.team_id);
// if they are on the team being removed redirect them to the root
- if (TeamStore.getCurrentId() === msg.broadcast.team_id) {
+ if (TeamStore.getCurrentId() === msg.data.team_id) {
TeamStore.setCurrentId('');
Client.setTeamId('');
browserHistory.push('/');