From 2d0d88a0cbd8c1823fe476abb80903cce6a61fd3 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 10 Jan 2020 11:42:53 +0100 Subject: [PATCH] Fix subscribe-button for logged-out users --- .../user-subscription/subscribe-button.component.html | 6 +++--- .../shared/user-subscription/subscribe-button.component.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.html b/client/src/app/shared/user-subscription/subscribe-button.component.html index 275349b7f..1c2288ebb 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.html +++ b/client/src/app/shared/user-subscription/subscribe-button.component.html @@ -12,8 +12,8 @@ - - {{ videoChannel.followersCount | myNumberFormatter }} + + {{ videoChannels[0].followersCount | myNumberFormatter }} @@ -50,7 +50,7 @@ diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.ts b/client/src/app/shared/user-subscription/subscribe-button.component.ts index 14a6bfe66..1ebfdc82f 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.ts +++ b/client/src/app/shared/user-subscription/subscribe-button.component.ts @@ -146,7 +146,7 @@ export class SubscribeButtonComponent implements OnInit { } isBigButton () { - return this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed() + return this.isUserLoggedIn() && this.videoChannels.length > 1 && this.isAtLeastOneChannelSubscribed() } gotoLogin () { -- 2.25.1