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 = () => {