Hide subscriber count in channel view if 0 is returned

This commit is contained in:
Preston 2020-10-06 17:45:30 -04:00
parent 7219aa3bd6
commit 854fd08f9c
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ export default Vue.extend({
ytch.getChannelInfo(this.id).then((response) => { ytch.getChannelInfo(this.id).then((response) => {
this.id = response.authorId this.id = response.authorId
this.channelName = response.author this.channelName = response.author
if (this.hideChannelSubscriptions) { if (this.hideChannelSubscriptions || response.subscriberCount === 0) {
this.subCount = null this.subCount = null
} else { } else {
this.subCount = response.subscriberCount.toFixed(0) this.subCount = response.subscriberCount.toFixed(0)