Skip to content

Commit

Permalink
Fix undefined this.user.videoChannels on production build
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsible authored and Chocobozzz committed Sep 8, 2021
1 parent b16e0cf commit 4546d92
Showing 1 changed file with 3 additions and 7 deletions.
Expand Up @@ -16,14 +16,10 @@ export class ChannelsSetupMessageComponent implements OnInit {
private authService: AuthService
) {}

get userInformationLoaded () {
return this.authService.userInformationLoaded
}

get hasChannelNotConfigured () {
return this.user.videoChannels
.filter((channel: VideoChannel) => (!channel.avatar || !channel.description))
.length > 0
if (!this.user.videoChannels) return

return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
}

ngOnInit () {
Expand Down

0 comments on commit 4546d92

Please sign in to comment.