diff --git a/application/src/main/webapp/vue-app/components/PopoverChatButton.vue b/application/src/main/webapp/vue-app/components/PopoverChatButton.vue index f8e39afaf1..3cd39a82ab 100644 --- a/application/src/main/webapp/vue-app/components/PopoverChatButton.vue +++ b/application/src/main/webapp/vue-app/components/PopoverChatButton.vue @@ -43,7 +43,7 @@ export default { chatServices.getUserSettings().then(userSettings => { this.userSettings = userSettings; this.$spaceService.isSpaceMember(this.identityId, this.userSettings.username).then(data => { - if (data.isMember === 'true') { + if (data) { chatServices.isRoomEnabled(this.userSettings, this.identityId).then(value => { this.spaceChatEnabled = value === 'true'; });