From 20b995442488f321cebad064d2488fdcf4c62899 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Thu, 29 Dec 2016 15:48:46 -0500
Subject: Fix console errors when logging out (#4915)

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

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

diff --git a/webapp/components/select_team/select_team.jsx b/webapp/components/select_team/select_team.jsx
index 361c95c49..292c90510 100644
--- a/webapp/components/select_team/select_team.jsx
+++ b/webapp/components/select_team/select_team.jsx
@@ -203,7 +203,7 @@ export default class SelectTeam extends React.Component {
             headerButton = (
                 <a
                     href='#'
-                    onClick={GlobalActions.emitUserLoggedOutEvent}
+                    onClick={() => GlobalActions.emitUserLoggedOutEvent()}
                 >
                     <span className='fa fa-chevron-left'/>
                     <FormattedMessage id='web.header.logout'/>
-- 
cgit v1.2.3-1-g7c22

