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

This commit is contained in:
Luca 2020-08-19 23:21:39 +02:00
parent 6e5e1e0542
commit 4e822d8093
1 changed files with 1 additions and 1 deletions

View File

@ -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