Commit 4546d92e authored by Ms Kimsible's avatar Ms Kimsible Committed by Chocobozzz
Browse files

Fix undefined this.user.videoChannels on production build

parent b16e0cf2
......@@ -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 () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment