Ensure we return a boolean
This commit is contained in:
parent
0ea2f79d45
commit
9e8a7e0837
|
@ -1,4 +1,4 @@
|
||||||
<div *ngIf="hasChannelNotConfigured" class="channels-setup-message alert alert-info">
|
<div *ngIf="hasChannelNotConfigured()" class="channels-setup-message alert alert-info">
|
||||||
<my-global-icon iconName="tip"></my-global-icon>
|
<my-global-icon iconName="tip"></my-global-icon>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -16,8 +16,8 @@ export class ChannelsSetupMessageComponent implements OnInit {
|
||||||
private authService: AuthService
|
private authService: AuthService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
get hasChannelNotConfigured () {
|
hasChannelNotConfigured () {
|
||||||
if (!this.user.videoChannels) return
|
if (!this.user.videoChannels) return false
|
||||||
|
|
||||||
return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
|
return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue