From 199c55b5662789e27858a2da9461d4e2ea6026c5 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Wed, 27 Jul 2016 09:53:49 -0400
Subject: Only get channels and posts on WebSocket connect if team is set
 (#3684)

---
 webapp/client/client.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/client/client.jsx')

diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 88da51372..cf015bc84 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -40,7 +40,7 @@ export default class Client {
     }
 
     getTeamId() {
-        if (this.teamId === '') {
+        if (!this.teamId) {
             console.error('You are trying to use a route that requires a team_id, but you have not called setTeamId() in client.jsx'); // eslint-disable-line no-console
         }
 
-- 
cgit v1.2.3-1-g7c22

