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/sidebar_right_menu.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/webapp/components/sidebar_right_menu.jsx b/webapp/components/sidebar_right_menu.jsx
index 3b7c1b562..c3c6d0f8f 100644
--- a/webapp/components/sidebar_right_menu.jsx
+++ b/webapp/components/sidebar_right_menu.jsx
@@ -442,7 +442,7 @@ export default class SidebarRightMenu extends React.Component {
                         <li>
                             <a
                                 href='#'
-                                onClick={GlobalActions.emitUserLoggedOutEvent}
+                                onClick={() => GlobalActions.emitUserLoggedOutEvent()}
                             >
                                 <i className='icon fa fa-sign-out'/>
                                 <FormattedMessage
-- 
cgit v1.2.3-1-g7c22

