fix unauthenticated subscribe status

This commit is contained in:
Bnyro
2022-08-02 10:41:35 +02:00
parent e0cf9e6182
commit a0109e910a
2 changed files with 11 additions and 4 deletions

View File

@@ -427,7 +427,10 @@ export default {
},
async fetchSubscribedStatus() {
if (!this.channelId) return;
if (!this.authenticated) this.subscribed = this.isSubscribedLocally(this.channelId);
if (!this.authenticated) {
this.subscribed = this.isSubscribedLocally(this.channelId);
return;
}
this.fetchJson(
this.authApiUrl() + "/subscribed",