From 9e8a7e083784a62e114d2df1e7f1993586016b87 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Sep 2021 10:19:03 +0200 Subject: Ensure we return a boolean --- .../app/shared/shared-main/misc/channels-setup-message.component.html | 4 ++-- .../app/shared/shared-main/misc/channels-setup-message.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client') diff --git a/client/src/app/shared/shared-main/misc/channels-setup-message.component.html b/client/src/app/shared/shared-main/misc/channels-setup-message.component.html index 3f94fa04c..3fe888a35 100644 --- a/client/src/app/shared/shared-main/misc/channels-setup-message.component.html +++ b/client/src/app/shared/shared-main/misc/channels-setup-message.component.html @@ -1,7 +1,7 @@ -
+
-
+
Some of your channels are not fully set up. Make them welcoming and explicit about what you publish by adding a banner, an avatar and a description.
Set up my channels
diff --git a/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts b/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts index b21507a34..702475029 100644 --- a/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts +++ b/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts @@ -16,8 +16,8 @@ export class ChannelsSetupMessageComponent implements OnInit { private authService: AuthService ) {} - get hasChannelNotConfigured () { - if (!this.user.videoChannels) return + hasChannelNotConfigured () { + if (!this.user.videoChannels) return false return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0 } -- cgit v1.2.3