From a5aba5fc84eb61d2f0b895f0a2272c0145730726 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Mon, 29 Jun 2020 13:58:06 -0300 Subject: [PATCH] [REGRESSION] Logout failing after #2217 (#2222) --- app/views/SettingsView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/SettingsView/index.js b/app/views/SettingsView/index.js index e7de7f302..9cb3c8b05 100644 --- a/app/views/SettingsView/index.js +++ b/app/views/SettingsView/index.js @@ -81,7 +81,7 @@ class SettingsView extends React.Component { const { user } = this.props; const { roles } = user; - return roles.includes('livechat-agent'); + return roles?.includes('livechat-agent'); } handleLogout = () => {