Hide subscriber count in channel view if 0 is returned
This commit is contained in:
parent
7219aa3bd6
commit
854fd08f9c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue