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) => {
this.id = response.authorId
this.channelName = response.author
if (this.hideChannelSubscriptions) {
if (this.hideChannelSubscriptions || response.subscriberCount === 0) {
this.subCount = null
} else {
this.subCount = response.subscriberCount.toFixed(0)