From a3c07a905b2024b0350c71786b1f4bba81c0494a Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 21 Jul 2021 02:13:03 +0530 Subject: [PATCH] Add authenticated check for fetching subscribed status. --- src/components/WatchVideo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 2f9d20d0..ac475de5 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -216,7 +216,7 @@ export default { this.fetchComments().then(data => (this.comments = data)); }, async fetchSubscribedStatus() { - if (!this.channelId) return; + if (!this.channelId || !this.authenticated) return; this.fetchJson( this.apiUrl() + "/subscribed",