From 4e822d80939a8091c72f1e6df742ece94c304f5a Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 19 Aug 2020 23:21:39 +0200 Subject: [PATCH] Turn the subscriber number into an integer number. Sometimes an issue with a somewhat low decimal 1 caused the number to have 9 decimal places --- src/renderer/views/Channel/Channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js index 923a3e04..b44326ae 100644 --- a/src/renderer/views/Channel/Channel.js +++ b/src/renderer/views/Channel/Channel.js @@ -179,7 +179,7 @@ export default Vue.extend({ ytch.getChannelInfo(this.id).then((response) => { this.id = response.authorId this.channelName = response.author - this.subCount = response.subscriberCount + this.subCount = response.subscriberCount.toFixed(0) this.thumbnailUrl = response.authorThumbnails[2].url this.channelDescription = autolinker.link(response.description) this.relatedChannels = response.relatedChannels