parent
8fe0615e68
commit
a5aba5fc84
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue