1
0
Fork 0

Fix undefined this.user.videoChannels on production build

This commit is contained in:
Ms Kimsible 2021-09-06 16:31:44 +02:00 committed by Chocobozzz
parent b16e0cf248
commit 4546d92e40
1 changed files with 3 additions and 7 deletions

View File

@ -16,14 +16,10 @@ export class ChannelsSetupMessageComponent implements OnInit {
private authService: AuthService private authService: AuthService
) {} ) {}
get userInformationLoaded () {
return this.authService.userInformationLoaded
}
get hasChannelNotConfigured () { get hasChannelNotConfigured () {
return this.user.videoChannels if (!this.user.videoChannels) return
.filter((channel: VideoChannel) => (!channel.avatar || !channel.description))
.length > 0 return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
} }
ngOnInit () { ngOnInit () {